tapp/filament-country-code-field
A country code select form field, table column, and table filter for Laravel Filament. Easily add searchable country codes to your resources' forms and tables, with a publishable config file. Supports Filament 4.x and 5.x.
Consider adoption when:
composer require plus optional config publish) over deep customization.composer.json with a tested upgrade cadence.Look elsewhere or build in-house when:
For executives: This is a low-cost, low-risk adoption of a small open-source component that standardizes how country codes appear across our admin panel. It removes a recurring source of inconsistent data entry and custom code, and it's a one-line dependency rather than a build project. Cost is effectively zero; the trade-off is that it's maintained by a small team, so we pin the version and keep an internal fallback in mind.
For engineering: tapp/filament-country-code-field gives us a Filament-native form field, table column, and table filter for country codes, with a documented compatibility matrix (v2.x for Filament 4/5, v1.x for Filament 3) and a publishable config. Integration is minimal and reversible: one Composer require, optional config publish, and three small schema entries. Risks are typical of micro-dependencies — low adoption, dependabot-driven maintenance, and coupling to Filament majors — so we should pin the version, cover the field/filter in a smoke test, and avoid extending it in ways that would make removal expensive. If our needs grow into phone validation or richer country metadata, we should plan a separate, deliberate decision rather than stretching this package.
How can I help you explore Laravel packages today?