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

v1.0.0 2025-12-24 05:01 UTC

This package is auto-updated.

Last update: 2025-12-24 06:24:13 UTC


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