Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/alireaza/error-handler-render-json-response
- Owner: alireaza
- License: mit
- Created: 2021-12-22T15:54:58.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2022-03-06T06:09:18.000Z (almost 3 years ago)
- Last Synced: 2024-11-29T22:17:35.735Z (about 2 months ago)
- Topics: composer, error-handler, php
- Language: PHP
- Homepage:
- Size: 3.91 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.