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');
$allCountries = $countries->getList();
$euroCountries = $countries->getByCurrency('EUR');
- 🌍 All 249 countries with complete data
- 🏳️ 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
For complete documentation, examples, and API reference, visit:
https://documentation.downsized.nl/laravel-countries
MIT License