tapp / filament-country-code-field
Filament country code field.
Fund package maintenance!
TappNetwork
Installs: 4 022
Dependents: 0
Suggesters: 0
Security: 0
Stars: 16
Watchers: 4
Forks: 5
Open Issues: 2
Requires
- php: ^8.2
- filament/filament: ^4.0
Requires (Dev)
- larastan/larastan: ^2.9||^3.0
- laravel/pint: ^1.14
- nunomaduro/collision: ^8.1.1||^7.10.0
- orchestra/testbench: ^10.0.0||^9.0.0
- pestphp/pest: ^3.0||^2.34
- pestphp/pest-plugin-arch: ^3.0||^2.7
- pestphp/pest-plugin-laravel: ^3.0||^2.3
- phpstan/extension-installer: ^1.3||^2.0
- phpstan/phpstan-deprecation-rules: ^1.1||^2.0
- phpstan/phpstan-phpunit: ^1.3||^2.0
This package is auto-updated.
Last update: 2025-06-20 20:29:06 UTC
README
A country code select form field, table column, and table filter for Laravel Filament.
Version Compatibility
Filament | Filament Country Code Field |
---|---|
3.x | 1.x |
4.x | 2.x |
Installation
You can install the package via Composer:
For Filament 3
composer require tapp/filament-country-code-field:"^1.0"
For Filament 4
composer require tapp/filament-country-code-field:"^2.0"
You can publish the config file with:
php artisan vendor:publish --tag="filament-country-code-field-config"
Usage
Form Field
Add to your Filament resource:
use Tapp\FilamentCountryCodeField\Forms\Components\CountryCodeSelect; public static function form(Form $form): Form { return $form ->schema([ // ... CountryCodeSelect::make('country_code'), // ... ]); }
Appareance
Table Column
use Tapp\FilamentCountryCodeField\Tables\Columns\CountryCodeColumn; public static function table(Table $table): Table { return $table ->columns([ //... CountryCodeColumn::make('country_code'), ]) // ... }
Table Filter
use Tapp\FilamentCountryCodeField\Tables\Filters\CountryCodeSelectFilter; public static function table(Table $table): Table { return $table //... ->filters([ CountryCodeSelectFilter::make('country_code'), // ... ]) }