| Package Data | |
|---|---|
| Maintainer Username: | Monarobase |
| Maintainer Contact: | jonathan@monarobase.net (Jonathan Thuau) |
| Package Create Date: | 2013-05-31 |
| Package Last Update: | 2025-02-25 |
| Language: | PHP |
| License: | MIT |
| Last Refreshed: | 2025-10-26 03:04:11 |
| Package Statistics | |
|---|---|
| Total Downloads: | 2,398,495 |
| Monthly Downloads: | 45,902 |
| Daily Downloads: | 285 |
| Total Stars: | 259 |
| Total Watchers: | 12 |
| Total Forks: | 39 |
| Total Open Issues: | 3 |
Country List is a package for Laravel 4/5 which lists all countries with names and ISO 3166-1 codes in all languages and data formats.
Run composer require monarobase/country-list to pull down the latest version of Country List.
Now open up config/app.php and add the service provider to your providers array.
Monarobase\CountryList\CountryListServiceProvider::class,
Now add the alias.
'Countries' => Monarobase\CountryList\CountryListFacade::class,
Get all countries
Route::get('/', function()
{
return Countries::getList('en', 'json');
});
Get one country
Route::get('/', function()
{
return Countries::getOne('RU', 'en');
});