{"repo":"mlanin/laravel-api-debugger","free":true,"listed":false,"github":"https://github.com/mlanin/laravel-api-debugger","clone":"git clone https://github.com/mlanin/laravel-api-debugger.git","description":"Easy debug for your JSON API.","language":"PHP","stars":232,"topics":["laravel","api","rest","debug"],"license":"MIT","category":"api-integrations-sdks","readme_excerpt":"Laravel-API-Debugger Easily debug your JSON API. When you are developing JSON API sometimes you need to debug it, but if you will use dd() or var dump() you will break the output that will affect every client that is working with your API at the moment. Debugger is made to provide you with all your debug information and not corrupt the output. Installation This help is for Laravel 5.4 only. Readme for earlier versions can be found in the relevant branches of this repo. PHP =5.5.9+ or HHVM 3.3+, Composer and Laravel 5.4+ are required. To get the latest version of Laravel Laravel-API-Debugger, simply add the following line to the require block of your composer.json file. For PHP = 7.1: For PHP json(); in your controller's method. Also please be careful with what you return. As if your answer will not be wrapped in any kind of data attribute ( pages in the example above), frontend could be damaged because of waiting the particular set of attributes but it will return extra debug one. So the best way to return your responses is like this For more info about better practices in JSON APIs you can find here http://jsonapi.org/ Debugging Debugger's two main tasks are to dump variables and collect anny additional info about your request. Var dump Debugger provides you with the easy way to dump any variable you want right in your JSON answer. This functionality sometimes very handy when you have to urgently debug your production environment. You can simultaneously dump as many vars as ","default_branch":null,"files":null,"tree":[],"storefront":"/r/mlanin","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/mlanin/laravel-api-debugger/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}