Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/alireaza/error-handler-render-json-response

Error Handler Render Json Response
https://github.com/alireaza/error-handler-render-json-response

composer error-handler php

Last synced: about 2 months ago
JSON representation

Error Handler Render Json Response

Awesome Lists containing this project

README

        

# Error Handler Render Json Response

## Install

Via Composer
```bash
$ composer require alireaza/error-handler-render-json-response
```

## Usage

```php
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](LICENSE) for more information.