| Package Data | |
|---|---|
| Maintainer Username: | foglerek |
| Maintainer Contact: | foglerek@gmail.com (Alexander Wesolowski) |
| Package Create Date: | 2014-07-22 |
| Package Last Update: | 2014-08-06 |
| Language: | PHP |
| License: | MIT |
| Last Refreshed: | 2025-11-10 03:04:01 |
| Package Statistics | |
|---|---|
| Total Downloads: | 6,485 |
| Monthly Downloads: | 0 |
| Daily Downloads: | 0 |
| Total Stars: | 1 |
| Total Watchers: | 0 |
| Total Forks: | 1 |
| Total Open Issues: | 0 |
Laravel 4 wrapper of the detectlanguage php library for http://detectlanguage.com
To install the API add this to your composer.json:
"require": {
"detectlanguage/detectlanguage": "dev-master",
"foglerek/detectlanguage-laravel4": "dev-master"
}
..then run composer update. (If you have problems getting that to work, try running php artisan dump-autoload followed by composer update again).
Register the service provider in app/config/app.php in the providers array:
'providers' => array(
//...
'Foglerek\DetectLanguageLaravel4\DetectLanguageServiceProvider',
)
Then create the config file app/config/detectlanguage.php based on the config file in the package.
<?php
return array(
/**
* DetectLanguage API Key
*/
'api_key' => ''
);
Now, you can access the DetectLanguage API by calling the DetectLanguage:: facade.
For more information on the available commands, see https://github.com/detectlanguage/detectlanguage-php