3neti / form-handler-signature
Signature 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-signature
Requires
- php: ^8.2
- 3neti/form-flow: ^1.0
- illuminate/support: ^11.0 || ^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 signatures using HTML5 canvas drawing.
Features
✅ Canvas-based signature drawing (mouse/touch support)
✅ Base64 image encoding
✅ Configurable canvas dimensions & quality
✅ Customizable stroke properties (width, color, cap, join)
✅ High-DPI display support (device pixel ratio scaling)
✅ Auto-registration with Form Flow Manager
Installation
composer require 3neti/form-handler-signature
Usage
{ handler: 'signature', config: { title: 'Sign Here', description: 'Please provide your signature', width: 600, height: 256, quality: 0.85, format: 'image/png', line_width: 2, line_color: '#000000', line_cap: 'round', line_join: 'round' } }
Configuration Options
| Option | Type | Default | Description |
|---|---|---|---|
width |
int | 600 | Canvas width in pixels |
height |
int | 256 | Canvas height in pixels |
quality |
float | 0.85 | Image compression quality (0-1) |
format |
string | 'image/png' | Output format (png/jpeg/webp) |
line_width |
int | 2 | Stroke width in pixels |
line_color |
string | '#000000' | Stroke color (hex) |
line_cap |
string | 'round' | Line ending style (butt/round/square) |
line_join |
string | 'round' | Line join style (bevel/round/miter) |
Requirements
- PHP 8.2+
- Laravel 12+
- Browser with HTML5 canvas support
Testing
cd packages/form-handler-signature
composer install
vendor/bin/pest
License
MIT
Author
3neti info@3neti.com