3neti / form-handler-selfie
Selfie capture handler for form flow system
Installs: 10
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
pkg:composer/3neti/form-handler-selfie
Requires
- php: ^8.2
- 3neti/form-flow: ^1.0
- illuminate/support: ^12.0
- spatie/laravel-data: ^4.0
Requires (Dev)
- inertiajs/inertia-laravel: ^2.0
- orchestra/testbench: ^10.3
- pestphp/pest: ^3.8
- pestphp/pest-plugin-laravel: ^3.0
README
A Form Flow Manager plugin for capturing selfie photos using browser camera (MediaDevices API).
Features
✅ Browser camera capture (front/back camera)
✅ Base64 image encoding
✅ Configurable quality & dimensions
✅ Face guide overlay (optional)
✅ Auto-registration with Form Flow Manager
Installation
composer require 3neti/form-handler-selfie
Usage
{ handler: 'selfie', config: { title: 'Take a Selfie', width: 640, height: 480, quality: 0.85, format: 'image/jpeg', show_guide: true } }
Requirements
- PHP 8.2+
- Laravel 12+
- HTTPS (required for MediaDevices API)
- Browser with getUserMedia support
Testing
cd packages/form-handler-selfie
composer install
vendor/bin/pest
License
MIT
Author
3neti