New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

jeffersongoncalves/filament-barcode-field

A Laravel Filament package that provides Barcode field functionality for your web applications. This package extends Filament v5 with a simple barcode input component supporting EAN-13, EAN-8, UPC-A, UPC-E, Code 128, Code 39, ITF and Codabar.
4,286 4
Install
composer require jeffersongoncalves/filament-barcode-field
Latest Version:3.1.0
PHP:^8.2|^8.3
Laravel:11 · 12 · 13
License:MIT
Last Updated:Oct 29, 2026
Links: GitHub  ·  Packagist
Maintainer: jeffersongoncalves

Filament Barcode Field

Filament Barcode Field

Buy Me A Coffee

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

A Laravel Filament package that provides Barcode field functionality for your web applications. This package extends Filament v5 with a simple barcode input component supporting EAN-13, EAN-8, UPC-A, UPC-E, Code 128, Code 39, ITF and Codabar.

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-barcode-field:^3.0

You can publish the config file with:

php artisan vendor:publish --tag="filament-barcode-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',
    'formats' => [
        'EAN_13',
        'EAN_8',
        'UPC_A',
        'UPC_E',
        'CODE_128',
        'CODE_39',
        'ITF',
        'CODABAR',
    ],
    'modal' => [
        'width' => Width::Large,
    ],
    'reader' => [
        'width' => '600px',
        'height' => '600px',
    ],
    'scanner' => [
        'fps' => 10,
        'width' => 300,
        'height' => 150,
    ],
];

formats controls which barcode symbologies the scanner looks for (mapped to the Html5QrcodeSupportedFormats enum from the html5-qrcode library). Restrict it to the symbologies you actually need for faster, more reliable scans.

Translations

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

  • English (en)
  • Portuguese (Brazil) (pt_BR)

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

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

Usage

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

use JeffersonGoncalves\Filament\BarcodeField\Forms\Components\BarcodeInput;

// In your form definition
BarcodeInput::make('barcode')
    ->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.

Related Packages

jeffersongoncalves/filament-logo

A simple yet effective Filament plugin that automatically adds the Filament logo...

19,565 5
jeffersongoncalves/filament-qrcode-field

A Laravel Filament package that provides QR Code field functionality for your we...

11,622 20
jeffersongoncalves/filament-sensible-defaults

A Filament plugin that applies a curated set of sensible, opinionated UI default...

6,613 2
jeffersongoncalves/filament-cep-field

The Filament CEP Field is a custom input component designed specifically for Bra...

5,542 8
jeffersongoncalves/filament-one-time-operations

This is a Laravel Filament package that provides a One Time Operations functiona...

4,671 2

Version History

Version Released PHP License
3.1.0 ^8.2|^8.3 MIT
3.0.0 ^8.2|^8.3 MIT
2.1.0 ^8.2|^8.3 MIT
2.0.0 ^8.2|^8.3 MIT
1.1.0 ^8.2|^8.3 MIT