PHPackages                             lexuses/api-debugger - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Debugging &amp; Profiling](/categories/debugging)
4. /
5. lexuses/api-debugger

ActiveLibrary[Debugging &amp; Profiling](/categories/debugging)

lexuses/api-debugger
====================

Debug info in laravel api response

0151PHP

Since Apr 19Pushed 8y ago1 watchersCompare

[ Source](https://github.com/lexuses/api-debugger)[ Packagist](https://packagist.org/packages/lexuses/api-debugger)[ RSS](/packages/lexuses-api-debugger/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependenciesVersions (1)Used By (0)

Api debugger
------------

[](#api-debugger)

### Install

[](#install)

`composer install lexuses/api-debugger`

### Usage

[](#usage)

For laravel below 5.5: add `Lexuses\ApiDebugger\ApiDebuggerServiceProvider` to your app.php

It's done!

Now you see in response:

```
{
    "data": {
        "id": 1,
        "name": "admin"
    },
    "debug": {
        "sql": {
            "total_queries": 673,
            "queries": [
                {
                    "query": "select * from `oauth_access_tokens` where `oauth_access_tokens`.`id` = '552ef1eb05742d41468ac07d0ad360ece53ac3c9e1a5151e7971b8e737033957677e447af58bfd03' limit 1;",
                    "time": 38.01
                },
                {
                    "query": "select * from `users` where `id` = '1' limit 1;",
                    "time": 13
                }
            ]
        }
    }
}

```

You can pass your variable for test:

```
$data = ["foo" => "bar"];
$debugger = app()->make(ApiDebugger::class);
$debugger->dump($data);

```

And in response you will see:

```
{
    "dump": {
        "foo": "bar"
    }
}

```

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/5d22d6014eeb34f878b41c02aafba14aecddcd654d604dcc79b47f5179737d90?d=identicon)[lexuses](/maintainers/lexuses)

---

Top Contributors

[![lexuses](https://avatars.githubusercontent.com/u/3509773?v=4)](https://github.com/lexuses "lexuses (3 commits)")

### Embed Badge

![Health badge](/badges/lexuses-api-debugger/health.svg)

```
[![Health](https://phpackages.com/badges/lexuses-api-debugger/health.svg)](https://phpackages.com/packages/lexuses-api-debugger)
```

###  Alternatives

[symfony/stopwatch

Provides a way to profile code

2.8k387.2M918](/packages/symfony-stopwatch)[fruitcake/laravel-debugbar

PHP Debugbar integration for Laravel

19.1k662.9k29](/packages/fruitcake-laravel-debugbar)[spatie/ignition

A beautiful error page for PHP applications.

510147.6M69](/packages/spatie-ignition)[jokkedk/webgrind

Webgrind is a Xdebug profiling web frontend in PHP5. It implements a subset of the features of kcachegrind and installs in seconds and works on all platforms. For quick'n'dirty optimizations it does the job.

3.3k193.0k](/packages/jokkedk-webgrind)[koriym/printo

An object graph visualizer.

1421.8M2](/packages/koriym-printo)[soloterm/dumps

A Laravel command to intercept dumps from your Laravel application.

125285.7k3](/packages/soloterm-dumps)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
