Laravel Countries 是一个 Laravel 组件,为所有国家提供几乎 ISO 3166_2、3166_3、货币、首都等信息。
Laravel Countries 是一个 Laravel 组件,为所有国家提供几乎 ISO 3166_2、3166_3、货币、首都等信息。
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');
// $usa['name'] => 'United States'
// $usa['full_name'] => 'United States of America'
$allCountries = $countries->getList();
$euroCountries = $countries->getByCurrency('EUR');
name) and official names (full_name)For complete documentation, examples, and API reference, visit:
https://documentation.downsized.nl/laravel-countries
MIT License
暂无开放 Issues,或尚未同步最近议题。