Releases: KosmosX/response
Releases · KosmosX/response
1.0.1
v1.0.0
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]