PHP code example of irontec / json-exception-response-bundle
1. Go to this page and download the library: Download irontec/json-exception-response-bundle library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
irontec / json-exception-response-bundle example snippets
`json
{
"error": {
"code": 400,
"message": "Error message!",
"debug": {
"file": "/opt/symfony/vendor/symfony/http-kernel/HttpKernel.php",
"line": 151,
"function": "index",
"class": "App\\Controller\\ExampleController",
"type": "->",
"args": [
{}
]
}
}
}