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: | 2024-11-19 03:14:39 |
Package Statistics | |
---|---|
Total Downloads: | 23,334 |
Monthly Downloads: | 103 |
Daily Downloads: | 3 |
Total Stars: | 15 |
Total Watchers: | 2 |
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');
});