3neti/form-handler-selfie

Selfie capture handler for form flow system
2,467
Install
composer require 3neti/form-handler-selfie
Latest Version:v1.1.5
PHP:^8.2
Laravel:12 · 13
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...

641,106,524 9,700
laravel/framework

The Laravel Framework.

593,882,149 34,959
laravel/tinker

Powerful REPL for the Laravel framework.

502,645,077 7,441
laravel/serializable-closure

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

418,291,778 609
nunomaduro/collision

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

394,964,158 4,660

Version History

Version Released PHP Laravel License
v1.1.5 ^8.2 ^12.0 || ^13.0 MIT
v1.1.4 ^8.2 ^12.0 || ^13.0 MIT
v1.1.3 ^8.2 ^12.0 || ^13.0 MIT
v1.1.2 ^8.2 ^12.0 || ^13.0 MIT
v1.1.1 ^8.2 ^12.0 || ^13.0 MIT