Modern Laravel Countries package providing ISO 3166-2, ISO 3166-3, currency, capital and more for all countries. Compatible with Laravel 11.x, 12.x, and 13.x.
webpatser/laravel-countries is a Laravel package for modern laravel countries package providing iso 3166-2, iso 3166-3, currency, capital and more for all countries. compatible with laravel 11.x, 12.x, and 13.x..
It currently has 843 GitHub stars and 2.939.140 downloads on Packagist (latest version v2.2.0).
Install it with composer require webpatser/laravel-countries.
Discover more Laravel packages by webpatser
or browse all Laravel packages to compare alternatives.
Last updated
A comprehensive Laravel package for handling countries data with all 249 countries, flags, currencies, regions, and more.
Install via Composer:
composer require webpatser/laravel-countries
Run the installation command to set up the database:
php artisan countries:install
use Webpatser\Countries\Countries;
$countries = new Countries();
$usa = $countries->getOne('US');
// $usa['name'] => 'United States'
// $usa['full_name'] => 'United States of America'
$allCountries = $countries->getList();
$euroCountries = $countries->getByCurrency('EUR');
name) and official names (full_name)For complete documentation, examples, and API reference, visit:
https://documentation.downsized.nl/laravel-countries
MIT License