LaravelPackages.net
Acme Inc.
Toggle sidebar
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.

2.939.140
843
v2.2.0
About webpatser/laravel-countries

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

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

Comments