PHPackages                             karim88/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. karim88/api-debugger

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

karim88/api-debugger
====================

Debug info in laravel api response

064PHP

Since Oct 31Pushed 6y agoCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

Api debugger (forked from lexuses/api-debugger)
-----------------------------------------------

[](#api-debugger-forked-from-lexusesapi-debugger)

### Install

[](#install)

`composer install karim88/api-debugger`

### Usage

[](#usage)

For laravel below 5.5: add `Karim88\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

19

—

LowBetter than 9% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity36

Early-stage or recently created project

 Bus Factor1

Top contributor holds 70% 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/180114802?v=4)[karim88](/maintainers/karim88)[@karim88](https://github.com/karim88)

---

Top Contributors

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

### Embed Badge

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

```
[![Health](https://phpackages.com/badges/karim88-api-debugger/health.svg)](https://phpackages.com/packages/karim88-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)
