jeffersongoncalves/
filament-qrcode-field
g4t.io

Add QR Code field functionality to your Filament UI's

18 stars by Yannick Lyn Fatt

A Laravel Filament package that provides QR Code field functionality for your web applications. This package extends Filament v3 with a simple QR code input component.

README from jeffersongoncalves/filament-qrcode-field Open on GitHub →

Filament Qrcode Field

Filament QrCode Field

Buy Me A Coffee

Latest Version on Packagist GitHub Code Style Action Status Total Downloads License

A Laravel Filament package that provides QR Code field functionality for your web applications. This package extends Filament v4 with a simple QR code input component.

Compatibility

Package Version Filament Version
1.x 3.x
2.x 4.x
3.x 5.x

Requirements

  • PHP 8.2 or higher
  • Filament 5.0

Installation

You can install the package via composer:

composer require jeffersongoncalves/filament-qrcode-field:^3.0

You can publish the config file with:

php artisan vendor:publish --tag="filament-qrcode-field-config"

This is the contents of the published config file:

use Filament\Support\Enums\Width;

return [
    'asset_js' => 'https://unpkg.com/html5-qrcode@2.3.8/html5-qrcode.min.js',
    'modal' => [
        'width' => Width::Large,
    ],
    'reader' => [
        'width' => '600px',
        'height' => '600px',
    ],
    'scanner' => [
        'fps' => 10,
        'width' => 250,
        'height' => 250,
    ],
];

Translations

This package supports multiple languages. The following languages are currently available:

  • Arabic (ar)
  • Czech (cs)
  • German (de)
  • English (en)
  • Spanish (es)
  • Persian (fa)
  • French (fr)
  • Hebrew (he)
  • Indonesian (id)
  • Italian (it)
  • Japanese (ja)
  • Dutch (nl)
  • Polish (pl)
  • Portuguese (pt)
  • Portuguese (Brazil) (pt_BR)
  • Portuguese (Portugal) (pt_PT)
  • Slovak (sk)
  • Turkish (tr)

If you want to customize the translations, you can publish the language files:

php artisan vendor:publish --tag=filament-qrcode-field-translations

Usage

Once installed, you can use the QrCodeInput component in your Filament forms:

use JeffersonGoncalves\Filament\QrCodeField\Forms\Components\QrCodeInput;

// In your form definition
QrCodeInput::make('qrcode')
    ->required(),

Development

You can run code analysis and formatting using the following commands:

# Run static analysis
composer analyse

# Format code
composer format

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

The MIT License (MIT). Please see License File for more information.

More from the ecosystem

marcreichel/
laya-php
g4t.io
3 53

LayaPHP: Self-Hosted Text Classification for PHP and Laravel

Classify text in PHP without an LLM bill: typed decisions in 100+ languages, self-hosted. Laravel-ready SDK for Laya, a Jev AI alternative.

ai classification decision-engine
marcreichel/laya-php via Laravel News
Josh-Dovey/
postcodes-laravel
g4t.io
5 9

Postcodes for Laravel: GB Postcode Lookup and Geography Data

Postcodes for Laravel adds typed GB postcode lookups, validation, geography data, distance searches, and test fakes through the GB Postcodes API.

Josh-Dovey/postcodes-laravel via Laravel News
RedberryProducts/
mailbox-for-laravel
g4t.io
4 115

Mailbox for Laravel: Preview and Test Rendered Email

Mailbox for Laravel captures outgoing mail in a local dashboard and lets you test rendered HTML, recipients, and attachments with fluent assertions.

RedberryProducts/mailbox-for-laravel via Laravel News