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

v1.1.0 2025-12-24 05:49 UTC

This package is auto-updated.

Last update: 2025-12-24 06:21:59 UTC


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