Proyectos
Ver en GitHub
Monarobase/country-list
Acerca de
List of all countries with names and ISO 3166-1 codes in all languages and data formats
Aprendizaje y educaciónCrecimiento de estrellas medido
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- -1
- in 1 month
- Recopilando historial
Cambios netos en períodos que se solapan, no totales diarios. Los datos no disponibles se dejan en blanco. Las estrellas indican interés, no calidad.
README.md
OriginalCountry List
Country List is a package for Laravel which lists all countries with names and ISO 3166-1 codes in all languages and data formats.
Installation
Run composer require monarobase/country-list.
Laravel 5.5 uses Package Auto-Discovery, so doesn't require you to manually add the ServiceProvider.
If you don't use auto-discovery, add the ServiceProvider to the providers array in config/app.php
Monarobase\CountryList\CountryListServiceProvider::class,
If needed, add the following alias as well.
'Countries' => Monarobase\CountryList\CountryListFacade::class,
Usage
- Locale (en, en_US, fr, fr_CA...)
- Format (csv, flags.html, html, json, mysql.sql, php, postgresql.sql, sqlite.sql, sqlserver.sql, txt, xml, yaml)
Get all countries
Route::get('/', function()
{
return Countries::getList('en', 'json');
});
Get one country
Route::get('/', function()
{
return Countries::getOne('RU', 'en');
});
Explorar proyectos relacionados
Cargando…