| Package Data | |
|---|---|
| Maintainer Username: | bestboysmedialab |
| Maintainer Contact: | volker.ansmann@bestboys-medialab.com (Volker Ansmann) |
| Package Create Date: | 2016-03-08 |
| Package Last Update: | 2020-09-02 |
| Language: | TSQL |
| License: | MIT |
| Last Refreshed: | 2025-12-14 03:13:34 |
| Package Statistics | |
|---|---|
| Total Downloads: | 25,660 |
| Monthly Downloads: | 261 |
| Daily Downloads: | 0 |
| Total Stars: | 15 |
| Total Watchers: | 1 |
| Total Forks: | 3 |
| Total Open Issues: | 0 |
Language List is a package for Laravel 5 which lists all langauges with names and ISO 3166-1 codes in all languages and data formats.
Add bestboysmedialab/language-list to composer.json.
"bestboysmedialab/language-list": "1.1.3"
Run composer update to pull down the latest version of Country List.
Now open up app/config/app.php and add the service provider to your providers array.
'providers' => array(
'Bestboysmedialab\LanguageList\LanguageListServiceProvider',
)
Now add the alias.
'aliases' => array(
'Languages' => 'Bestboysmedialab\LanguageList\LanguageListFacade',
)
Get all languages
Route::get('/', function()
{
return Languages::getList('en', 'json');
});
Get one Language
Route::get('/', function()
{
return Languages::getOne('RU', 'en');
});