laravel-countries maintained by fajarsulaksono
Description
Modern Laravel Countries package providing ISO 3166-2, ISO 3166-3, currency, capital and more for all countries. Compatible with Laravel 10.x, 11.x, 12.x, and 13.x.
Authors
Christoph Kempen - Paul Kievits
Last update
2026/07/30 08:36
(dev-master)
License
Downloads
9
Tags
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 fajarsulaksono/laravel-countries
Run the installation command to set up the database:
php artisan countries:install
Quick Usage
use fajarsulaksono\LaravelCountries\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