alireaza/error-handler-render-json-response

This is JSON Response package for Render Error Handler.

1.2.0 2022-03-06 06:09 UTC

This package is auto-updated.

Last update: 2023-01-06 07:54:29 UTC


README

Install

Via Composer

$ composer require alireaza/error-handler-render-json-response

Usage

use AliReaza\ErrorHandler\ErrorHandler;
use AliReaza\ErrorHandler\Render\JsonResponse as RenderErrorHandler;

$error_handler = new ErrorHandler();
$error_handler->register(true, true);
$error_handler->setRender(RenderErrorHandler::class);

License

The MIT License (MIT). Please see License File for more information.