Skip to content

Releases: KosmosX/response

1.0.1

04 May 22:08
Compare
Choose a tag to compare
version 1.0.1

v1.0.0

02 May 20:26
Compare
Choose a tag to compare

Documentation




Let's go

Composer

composer require kosmosx/response

Laravel / Lumen register providers

Kosmosx\Response\Laravel\ResponseServiceProvider

Register handler Execptions (LaravelHandler or LumenHandler)

$this->app->singleton(
    \Illuminate\Contracts\Debug\ExceptionHandler::class,
    \Kosmosx\Response\Laravel\Exceptions\.....::class
);

Use

use Kosmosx\Response\RestResponse;
use RestResponse; //Facade alias

PHP 7.1

require __DIR__ . '/vendor/autoload.php';
$response = new Kosmosx\Response\RestResponse();

$handler = Kosmosx\Response\Exceptions\Handler();
$handler->setExceptionHandler();    

en: documentation

it: documentazione


If you find a bug or want to contribute, write to [email protected]