3neti/form-handler-selfie

Selfie capture handler for form flow system
2,049
Install
composer require 3neti/form-handler-selfie
Latest Version:v1.1.5
PHP:^8.2
License:MIT
Last Updated:Aug 9, 2026
Links: GitHub  ·  Packagist
Maintainer: 3neti

Selfie Handler

3neti/form-handler-selfie captures a selfie through the browser MediaDevices API as a step in 3neti/form-flow.

Features

  • Front or rear camera capture with an optional face guide
  • Configurable image dimensions, format, and quality
  • Shared Form Flow screen and action components
  • Default, compact, and immersive presentation variants
  • Canonical selfie result field

Installation

composer require 3neti/form-handler-selfie
php artisan selfie-handler:install --no-interaction

Usage

[
    'handler' => 'selfie',
    'config' => [
        'width' => 640,
        'height' => 480,
        'quality' => 0.85,
        'format' => 'image/jpeg',
        'facing_mode' => 'user',
        'show_guide' => true,
        'ui_variant' => 'compact',
    ],
]

Successful capture returns selfie, timestamp, width, height, and format. The selfie value is a data URL. Hosts should apply an explicit retention, encryption, access-control, and redaction policy before persisting or logging biometric images.

Requirements

  • PHP 8.2 or newer
  • Laravel 12 or 13
  • Form Flow 1.8 or newer
  • Inertia Laravel 2 or 3
  • A secure browser context with MediaDevices support

Testing

composer test
composer pint -- --test
composer audit

License

MIT

Related Packages

doctrine/dbal

Powerful PHP database abstraction layer (DBAL) with many features for database s...

631,580,251 9,707
laravel/framework

The Laravel Framework.

580,311,802 34,925
laravel/tinker

Powerful REPL for the Laravel framework.

489,754,436 7,444
laravel/serializable-closure

Laravel Serializable Closure provides an easy and secure way to serialize closur...

404,034,618 608
nunomaduro/collision

Cli error handling for console/command-line PHP applications.

384,821,166 4,658