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 2w 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 18% 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://avatars.githubusercontent.com/u/3509773?v=4)[Alex Khrulev](/maintainers/lexuses)[@lexuses](https://github.com/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

[fjogeleit/prometheus-messenger-middleware

Prometheus Middleware for the Symfony Messenger Component

2255.2k](/packages/fjogeleit-prometheus-messenger-middleware)[spatie/craft-ray

Easily debug CraftCMS projects

1638.4k](/packages/spatie-craft-ray)

PHPackages © 2026

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