2.2 documentation

Facile Component simplify the need to create API based response in your Laravel 4 application, with just the following code you are able to return multi format Response, either it be HTML (using View), json or etc.

Table of Content

Version Compatibility

Laravel Facile
4.0.x 2.0.x
4.1.x 2.1.x
4.2.x 2.2.x

Installation

To install through composer, simply put the following in your composer.json file:

{
    "require": {
        "orchestra/facile": "2.2.*"
    }
}

And then run composer install from the terminal.

Quick Installation

Above installation can also be simplify by using the following command:

composer require "orchestra/facile=2.2.*"

Configuration

Next add the service provider in app/config/app.php.

'providers' => array(

    // ...

    'Orchestra\Facile\FacileServiceProvider',
),

Aliases

You might want to add Orchestra\Support\Facades\Facile to class aliases in app/config/app.php:

'aliases' => array(

    // ...

    'Facile' => 'Orchestra\Support\Facades\Facile',
),