Package Data | |
---|---|
Maintainer Username: | Fabrizio Cafolla |
Maintainer Contact: | developer@fabriziocafolla.com (Fabrizio Cafolla) |
Package Create Date: | 2018-11-04 |
Package Last Update: | 2019-06-19 |
Home Page: | https://packagist.org/packages/kosmosx/response |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2025-01-18 03:05:24 |
Package Statistics | |
---|---|
Total Downloads: | 150 |
Monthly Downloads: | 0 |
Daily Downloads: | 0 |
Total Stars: | 16 |
Total Watchers: | 2 |
Total Forks: | 0 |
Total Open Issues: | 0 |
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 developer@fabriziocafolla.com