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: 2024-12-06 12:03:21 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.