webpatser/laravel-countries
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.
3,032,723
851
| Install | |
|---|---|
composer require webpatser/laravel-countries |
|
| Latest Version: | v2.2.2 |
| PHP: | ^8.2 |
| License: | MIT |
| Last Updated: | Sep 22, 2026 |
| Links: | GitHub · Packagist |
Maintainer: paulkned
Laravel Countries
A comprehensive Laravel package for handling countries data with all 249 countries, flags, currencies, regions, and more.
Installation
Install via Composer:
composer require webpatser/laravel-countries
Run the installation command to set up the database:
php artisan countries:install
Quick Usage
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');
Features
- 🌍 All 249 countries with complete data
- 🏷️ Common names (
name) and official names (full_name) - 🏳️ Flag emojis for every country
- 💰 Currency information and filtering
- 🌏 Regional grouping and filtering
- 🔍 Search and query capabilities
- 📋 Laravel validation rules
- 🎨 Collection and String macros
- 🗄️ Eloquent model support
Documentation
For complete documentation, examples, and API reference, visit:
https://documentation.downsized.nl/laravel-countries
License
MIT License
Related Packages
incloudout/countries
Laravel Countries is a bundle for Laravel, providing Almost ISO 3166_2, 3166_3,...
24
bhuvidya/laravel-countries
Laravel Countries is a bundle for Laravel, providing Almost ISO 3166_2, 3166_3,...
31,184
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
sidm/laravel-subdivisions
Laravel Subdivisions is a bundle for Laravel 4.2, providing what is roughly all...
512
4
Version History
| Version | Released | PHP | Laravel | License |
|---|---|---|---|---|
| v2.2.2 | ^8.2 | ^11.0| | MIT | |
| v2.2.1 | ^8.2 | ^11.0| | MIT | |
| v2.2.0 | ^8.2 | ^11.0| | MIT | |
| v2.1.3 | ^8.2 | ^11.0| | MIT | |
| v2.1.2 | ^8.2 | ^11.0| | MIT | |
| v2.1.1 | ^8.2 | ^11.0| | MIT | |
| v2.1.0 | ^8.2 | ^11.0| | MIT | |
| v2.0.0 | ^8.2 | ^11.0| | MIT | |
| 1.5.4 | >=5.3.0 | MIT | ||
| 1.5.3 | >=5.3.0 | MIT | ||
| 1.5.2 | >=5.3.0 | MIT | ||
| 1.5.1 | >=5.3.0 | MIT | ||
| 1.5 | >=5.3.0 | MIT | ||
| 1.4.3 | >=5.3.0 | MIT | ||
| 1.4.2 | >=5.3.0 | MIT | ||
| 1.4.1 | >=5.3.0 | MIT | ||
| 1.4 | >=5.3.0 | MIT | ||
| 1.3.7 | >=5.3.0 | MIT | ||
| 1.3.6 | >=5.3.0 | MIT | ||
| 1.3.5 | >=5.3.0 | MIT | ||
| 1.3.4 | >=5.3.0 | MIT | ||
| 1.3.3 | >=5.3.0 | MIT | ||
| 1.3.2 | >=5.3.0 | MIT | ||
| 1.3.1 | >=5.3.0 | MIT | ||
| 1.3 | >=5.3.0 | MIT | ||
| 1.2 | >=5.3.0 | MIT | ||
| 1.1 | >=5.3.0 | MIT |