2017 © Pedro Peláez
 

library detectlanguage-laravel4

Laravel 4 Wrapper for the official Detectlanguage.com PHP Client

image

foglerek/detectlanguage-laravel4

Laravel 4 Wrapper for the official Detectlanguage.com PHP Client

  • Wednesday, August 6, 2014
  • by foglerek
  • Repository
  • 1 Watchers
  • 1 Stars
  • 4,626 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 14 % Grown

The README.md

detectlanguage-laravel4

Laravel 4 wrapper of the detectlanguage php library for http://detectlanguage.com, (*1)

  • Author: Alexander Wesolowski
  • Version: 1.0.0

Installation

To install the API add this to your composer.json:, (*2)

"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)., (*3)

Register the service provider in app/config/app.php in the providers array:, (*4)

'providers' => array(
    //...
    'Foglerek\DetectLanguageLaravel4\DetectLanguageServiceProvider',
)

Then create the config file app/config/detectlanguage.php based on the config file in the package., (*5)

<?php
    return array(
        /**
         * DetectLanguage API Key
         */
        'api_key' => ''
    );

Documentation

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, (*6)

The Versions

06/08 2014

dev-master

9999999-dev http://github.com/foglerek/detectlanguage-laravel4

Laravel 4 Wrapper for the official Detectlanguage.com PHP Client

  Sources   Download

MIT

The Requires

 

by Alexander Wesolowski

laravel detectlanguage detect language