PHPackages                             aiaeforks/filament-country-field - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. aiaeforks/filament-country-field

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

aiaeforks/filament-country-field
================================

Country dropdown with ISO 3166 options values

2.2.1(1y ago)069MITPHPPHP ^8.1 || ^8.2 || ^8.3

Since Mar 3Pushed 1y agoCompare

[ Source](https://github.com/AiAeForks/filament-country-field)[ Packagist](https://packagist.org/packages/aiaeforks/filament-country-field)[ Docs](https://github.com/parfaitementweb/filament-country-field)[ GitHub Sponsors](https://github.com/parfaitementweb)[ RSS](/packages/aiaeforks-filament-country-field/feed)WikiDiscussions main Synced today

READMEChangelog (1)Dependencies (17)Versions (2)Used By (0)

Filament Country (ISO 639-1) Field
==================================

[](#filament-country-iso-639-1-field)

[![Latest Version on Packagist](https://camo.githubusercontent.com/47f6a930c0135d916eb5281054af2170bf3eeacaf124ec52f0fd99aabb3ff9c5/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f70617266616974656d656e747765622f66696c616d656e742d636f756e7472792d6669656c642e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/parfaitementweb/filament-country-field)[![GitHub Tests Action Status](https://camo.githubusercontent.com/914696c956ab8805fee284a2570047c61661d54a4bf57eb6b48192a484d52c83/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f70617266616974656d656e747765622f66696c616d656e742d636f756e7472792d6669656c642f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/parfaitementweb/filament-country-field/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/a0302986af7de95a5d6daf199a83bc6ce1a1d392692849e54b1a829735380c01/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f70617266616974656d656e747765622f66696c616d656e742d636f756e7472792d6669656c642f6669782d7068702d636f64652d7374796c696e672e796d6c3f6272616e63683d6d61696e266c6162656c3d636f64652532307374796c65267374796c653d666c61742d737175617265)](https://github.com/parfaitementweb/filament-country-field/actions?query=workflow%3A%22Fix+PHP+code+styling%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/3223ef276f026472ba204ea0e7491c9a8b1c8fbc6ea79d5e09d357f1022f5491/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f70617266616974656d656e747765622f66696c616d656e742d636f756e7472792d6669656c642e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/parfaitementweb/filament-country-field)[![Filament Version](https://camo.githubusercontent.com/2f9319bf65d5bbb94ef44e99394943a04a99488e154a61accd2649229d83ca16/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f46696c616d656e742d76332d626c7565)](https://filamentphp.com)

The simplest way to list every country as a selectable dropdown 🤘

Features
--------

[](#features)

- Display a select field with **every ISO 639-1 language**. *tl;dr: The two-letter code.*
- Built-in **localization** in **132** languages.
- Supports all the native **[Select Field](https://filamentphp.com/docs/3.x/forms/fields/select)** features.

Screenshot
----------

[](#screenshot)

[![filament-country-field](https://private-user-images.githubusercontent.com/287688/298268185-ba6e568c-3244-4338-a6ca-89fce52a5f06.jpg?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3ODI5NDk4NDYsIm5iZiI6MTc4Mjk0OTU0NiwicGF0aCI6Ii8yODc2ODgvMjk4MjY4MTg1LWJhNmU1NjhjLTMyNDQtNDMzOC1hNmNhLTg5ZmNlNTJ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OTBmMWYyNDBhYmNlMGU4MDVkMWFiOTkxNDc3ZGM1ZDVkZjZjZTA4NWQyJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZyZXNwb25zZS1jb250ZW50LXR5cGU9aW1hZ2UlMkZqcGVnIn0.NPMSVu4HYaZEg85HZQoAenTP022KQBD9rcqEvg9MF-M)

Getting Started
---------------

[](#getting-started)

We have made things easy for you start. Here is the three steps your need to follow:

1. **Install the package**

```
composer require parfaitementweb/filament-country-field
```

2. **Add the Country Form field in your Filament Resource.**

```
use Parfaitementweb\FilamentCountryField\Forms\Components\Country;

Country::make('country')
```

3. **Add the Country Column field in your Filament Resource.**

```
use Parfaitementweb\FilamentCountryField\Tables\Columns\CountryColumn;

CountryColumn::make('country')
```

3. **Enjoy.**

Configuration
-------------

[](#configuration)

On top of all **[Select Field](https://filamentphp.com/docs/3.x/forms/fields/select)** methods, you can use these three helpers for the Form Component.

- `exclude()` removes an item from the list.
- `add()` adds your own value to the list.
- `map()` changes one key to another, such as `GB` to `UK`.

```
use Parfaitementweb\FilamentCountryField\Forms\Components\Country;

Country::make('country')
->exclude(['NL'])
->add(['MA' =>'Mars'])
->map(['GB' => 'UK', 'GF' => 'FR'])
```

Clearing the Cache
------------------

[](#clearing-the-cache)

To ensure better performance and faster response times, the country list is stored in the cache for easy retrieval, leading to an overall snappier user experience.

To clear the cached country list, you can utilize the built-in artisan command provided by Laravel. The following command can be run in your terminal or command line interface:

```
php artisan countries-field:clear
```

Built-in translations
---------------------

[](#built-in-translations)

The country values are displayed according to the user's current locale settings, which are determined by the App::getLocale() value.

The field supports those **132 languages**:

*Afrikaans, Akan, Amharic, Arabic, Assamese, Azerbaijani, Belarusian, Bulgarian, Bambara, Bengali, Tibetan, Breton, Bosnian, Catalan, Chechen, Czech, Welsh, Danish, German, Dzongkha, Ewe, Greek, English, Esperanto, Spanish, Estonian, Basque, Persian, Fula, Finnish, Faroese, French, Western Frisian, Irish, Scottish Gaelic, Galician, Gujarati, Manx, Hausa, Hebrew, Hindi, Croatian, Hungarian, Armenian, Interlingua, Indonesian, Igbo, Sichuan Yi, Icelandic, Italian, Japanese, Javanese, Georgian, Kikuyu, Kazakh, Kalaallisut, Khmer, Kannada, Korean, Kashmiri, Kurdish, Cornish, Kyrgyz, Luxembourgish, Ganda, Lingala, Lao, Lithuanian, Luba-Katanga, Latvian, Malagasy, Maori, Macedonian, Malayalam, Mongolian, Marathi, Malay, Maltese, Burmese, Norwegian Bokmål, North Ndebele, Nepali, Dutch, Norwegian Nynorsk, Norwegian, Oromo, Odia, Ossetic, Punjabi, Polish, Pashto, Portuguese, Quechua, Romansh, Rundi, Romanian, Russian, Kinyarwanda, Sindhi, Northern Sami, Sango, Serbo-Croatian, Sinhala, Slovak, Slovenian, Shona, Somali, Albanian, Serbian, Swedish, Swahili, Tamil, Telugu, Tajik, Thai, Tigrinya, Turkmen, Tagalog, Tongan, Turkish, Tatar, Uighur, Ukrainian, Urdu, Uzbek, Vietnamese, Wolof, Xhosa, Yiddish, Yoruba, Chinese, Zulu*

Built-in countries
------------------

[](#built-in-countries)

You can check the entire [country list here](DATA.md).

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](.github/CONTRIBUTING.md) for details.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

This package used data from [umpirsky/country-list](https://github.com/umpirsky/country-list). Thank you for the great work.

- [Alexis](https://github.com/AlexisSerneels)
- [Saša Stamenković](https://github.com/umpirsky)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

31

—

LowBetter than 66% of packages

Maintenance41

Moderate activity, may be stable

Popularity11

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 82.6% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

489d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/b2e5f4545d09f665988e784a0b7fce404b6e72ea70e1a3d87e9a7b0fc01c024f?d=identicon)[AiAe](/maintainers/AiAe)

---

Top Contributors

[![AlexisSerneels](https://avatars.githubusercontent.com/u/287688?v=4)](https://github.com/AlexisSerneels "AlexisSerneels (76 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (7 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (5 commits)")[![AiAe](https://avatars.githubusercontent.com/u/3695158?v=4)](https://github.com/AiAe "AiAe (1 commits)")[![agencetwogether](https://avatars.githubusercontent.com/u/53862310?v=4)](https://github.com/agencetwogether "agencetwogether (1 commits)")[![felipefcastro-okay](https://avatars.githubusercontent.com/u/23668256?v=4)](https://github.com/felipefcastro-okay "felipefcastro-okay (1 commits)")[![pierredup](https://avatars.githubusercontent.com/u/144858?v=4)](https://github.com/pierredup "pierredup (1 commits)")

---

Tags

laravelParfaitementwebfilament-country-field

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/aiaeforks-filament-country-field/health.svg)

```
[![Health](https://phpackages.com/badges/aiaeforks-filament-country-field/health.svg)](https://phpackages.com/packages/aiaeforks-filament-country-field)
```

###  Alternatives

[rawilk/profile-filament-plugin

Profile &amp; MFA starter kit for filament.

3914.6k](/packages/rawilk-profile-filament-plugin)[stephenjude/filament-jetstream

A Laravel starter kit built with Filament inspired by Jetstream.

17760.2k3](/packages/stephenjude-filament-jetstream)[stephenjude/filament-debugger

About

104162.2k2](/packages/stephenjude-filament-debugger)[codewithdennis/filament-select-tree

The multi-level select field enables you to make single selections from a predefined list of options that are organized into multiple levels or depths.

329530.5k29](/packages/codewithdennis-filament-select-tree)[stephenjude/filament-feature-flags

Filament implementation of feature flags and segmentation with Laravel Pennant.

122177.8k1](/packages/stephenjude-filament-feature-flags)[finity-labs/fin-mail

A powerful email template manager and composer for Filament with dynamic token replacement, template versioning, and inline email sending.

284.5k1](/packages/finity-labs-fin-mail)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
