New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

ezitisitis/laravel-countries

Bundle for Laravel, which provides ISO 3166_2, 3166_3, currency, Capital, and more data for all countries
1,200
Install
composer require ezitisitis/laravel-countries
Latest Version:1.4.0
Laravel:10 – 13
Older releases:8 · 9
License:MIT
Last Updated:Jun 10, 2026
Links: GitHub  ·  Packagist
Maintainer: ezitisitis

Laravel Countries

Packagist Version GitHub License

Bundle for Laravel, which provides ISO 3166_2, 3166_3, currency, Capital, and more data for all countries

Notice: this version is for Laravel 8 and above

Installation

Add ezitisitis/laravel-countries to your composer.json by running:

composer require ezitisitis/laravel-countries

Run installation command:

php artisan countries:install

NB Installation command supports --force flag/option to force publishing

Run migration command:

php artisan migrate

Model and data

To change model table go to config/countries.php and change table_name value.

NB You will need to make sure that old table is removed.

Now you can seed database by executing:

php artisan db:seed --class=CountriesSeeder

Or by adding seeder to your DatabaseSeeder:

$this->call(CountriesSeeder::class);

and executing:

php artisan db:seed

Credits

Related Packages

bhuvidya/laravel-countries

Laravel Countries is a bundle for Laravel, providing Almost ISO 3166_2, 3166_3,...

31,898 33
polygon/laravel-countries

Laravel Countries is a bundle for Laravel, providing Almost ISO 3166_2, 3166_3,...

741
yayann/laravel-countries

Laravel Countries is a bundle for Laravel, providing Almost ISO 3166_2, 3166_3,...

626 1
incloudout/countries

Laravel Countries is a bundle for Laravel, providing Almost ISO 3166_2, 3166_3,...

24
webpatser/laravel-countries

Modern Laravel Countries package providing ISO 3166-2, ISO 3166-3, currency, cap...

3,113,491 854

Version History

Version Released Laravel License
1.4.0 ^10.0|^11.0|^12.0|^13.0 MIT
1.3.0 ^8.0|^9.0|^10.0|^11.0|^12.0 MIT
1.2.0 ^8.0|^9.0|^10.0|^11.0 MIT
1.1.0 ^8.0|^9.0|^10.0 MIT
1.0.1 >=8.0 MIT