hasanh47/laravel-api-debugger

A simple API debugger for Laravel

dev-main 2024-08-28 02:51 UTC

This package is not auto-updated.

Last update: 2025-08-14 05:49:10 UTC


README

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.