Skip to content

Laravel Countries is a bundle for Laravel, providing Almost ISO 3166_2, 3166_3, currency, Capital and more for all countries.

License

Notifications You must be signed in to change notification settings

webpatser/laravel-countries

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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');
$allCountries = $countries->getList();
$euroCountries = $countries->getByCurrency('EUR');

Features

  • 🌍 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

Documentation

For complete documentation, examples, and API reference, visit:

https://documentation.downsized.nl/laravel-countries

License

MIT License

About

Laravel Countries is a bundle for Laravel, providing Almost ISO 3166_2, 3166_3, currency, Capital and more for all countries.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 28