tapp/filament-country-code-field

Filament country code field.

Fund package maintenance!
TappNetwork

Installs: 14 135

Dependents: 0

Suggesters: 0

Security: 0

Stars: 20

Watchers: 4

Forks: 7

Open Issues: 1

pkg:composer/tapp/filament-country-code-field

v2.0.2 2026-01-22 00:10 UTC

README

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

A country code select form field, table column, and table filter for Laravel Filament.

Version Compatibility

Filament Filament Country Code Field Documentation
4.x/5.x 2.x Current
3.x 1.x Check the docs

Installation

You can install the package via Composer:

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

Filament Country Code Field

Filament Country Code Table Column and Filter

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'),
            // ...
        ])
}