Looking to hire Laravel developers? Try LaraJobs

laravel-api-debugger maintained by hasanh47

Description
A simple API debugger for Laravel
Author
Last update
2024/08/28 04:51 (dev-main)
License
Links
Downloads
2

Comments
comments powered by Disqus

LaravelApiDebugger

LaravelApiDebugger is a simple library for debugging APIs in Laravel applications. It provides functionality similar to dd() and dump() but tailored for API responses.

Installation

To install LaravelApiDebugger, require it using Composer:

composer require hasanh47/laravel-api-debugger

Usage

Use the ApiDebugger class to debug API responses:

use HasanH47\ApiDebugger\ApiDebugger;

public function someMethod(Request $request)
{
    $data = ['key' => 'value'];

    // For debugging API
    ApiDebugger::dd($data);

    return response()->json(['success' => true]);
}

License

This library is licensed under the MIT License. See the LICENSE file for more information.