Laravel 11 – 13
PHP 8.2+
Low commit activity in last 18 months
A long-lived project that still receives updates
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.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies

Development

Runtime

^11.0|^12.0|^13.0
^11.0|^12.0|^13.0
 Project Readme

Laravel Countries

Total Downloads PHP Version Laravel Version License

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