Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Filament Country Code Field Laravel Package

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.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Admin UX consistency across resources: Adopt a single, standardized country-code input/display/filter component instead of each feature team hand-rolling dropdowns. This is a small but compounding win when you have many Filament resources touching addresses, billing, shipping, or user profiles.
  • Build vs. buy on commodity UI: The capability (ISO country list, select field, column renderer, filter) is generic and non-differentiating. Buying it via Composer is cheaper than owning a custom form component, country dataset, and the inevitable bug fixes (e.g., empty-state handling noted in v1.0.1).
  • Internationalization / market expansion roadmap: If you're adding regions or localizing the admin, a package with existing locale support (pt_BR in v1.0.2) and a published config file gives you a configuration surface to extend rather than a rewrite.
  • Data standardization decisions: Committing to a shared country-code representation (ISO alpha-2) in forms, tables, and filters is a data-model decision worth making explicitly. This package nudges toward consistency; it does not enforce validation semantics on its own.
  • Scoping adjacent features: Use the package's boundaries to decide what you won't build now — e.g., full phone number parsing/validation, dial-code formatting, or country-name translations are out of scope and should be separate roadmap items.

When to Consider This Package

Consider adoption when:

  • You are already on Filament 3.x (v1.x) or Filament 4.x/5.x (v2.x) and the version matrix lines up with your upgrade path.
  • You need the trio — form field, table column, and table filter — for country codes and want them to look and behave identically.
  • Your requirement is genuinely just the country code (not full phone validation, not address autocomplete, not geo lookups).
  • Your team is small and you value low integration cost (a single composer require plus optional config publish) over deep customization.
  • You can tolerate a small, single-organization maintainer and pin the version in composer.json with a tested upgrade cadence.

Look elsewhere or build in-house when:

  • You need phone number validation, normalization, or formatting — that's a libphonenumber-class problem, not a select field.
  • You require country names, flags, dial codes, or translated labels as first-class data; verify the package covers your display needs before committing.
  • You need vendor SLAs, security review artifacts, or long-term support guarantees. With ~21 stars and no visible dependents, treat this as community-grade, not enterprise-supported.
  • You are not on Filament, or you're on a Filament major version outside the documented compatibility table.
  • Your admin is mission-critical and upgrade-sensitive; a thin internal component (a config-driven select plus a small country list) may be lower total risk than an external dependency that must track Filament majors.

How to Pitch It (Stakeholders)

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.

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
rlacerda83/query-parser
socialdept/atp-orm
cboxdk/laravel-assistant-client
socialdept/atp-resolver
socialdept/tenant-domains
tautvydasr/blade-class-names
socialdept/color-scales
maherelgamil/controller
coleus/widgets
coleus/table
coleus/users
coleus/music
coleus/health
coleus/calendar
coleus/notes
coleus/support
coleus/settings
coleus/apps
seampact/laravel
emmyconceptng/laravel-ng-postcode