PHPackages                             innmind/debug - 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. [HTTP &amp; Networking](/categories/http)
4. /
5. innmind/debug

ActiveLibrary[HTTP &amp; Networking](/categories/http)

innmind/debug
=============

Set of tools to help debug applications

5.0.0(1mo ago)01.5k↓80%[1 issues](https://github.com/Innmind/Debug/issues)3MITPHPPHP ~8.4CI failing

Since Feb 9Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/Innmind/Debug)[ Packagist](https://packagist.org/packages/innmind/debug)[ Docs](http://github.com/Innmind/Debug)[ RSS](/packages/innmind-debug/feed)WikiDiscussions develop Synced 3d ago

READMEChangelog (1)Dependencies (16)Versions (14)Used By (3)

Debug
=====

[](#debug)

[![CI](https://github.com/Innmind/Debug/actions/workflows/ci.yml/badge.svg?branch=master)](https://github.com/Innmind/Debug/actions/workflows/ci.yml)[![codecov](https://camo.githubusercontent.com/46f4b77d1568cc6964dbe90c4743ab64d921993dd229c9fb5f8889a3c5b68784/68747470733a2f2f636f6465636f762e696f2f67682f496e6e6d696e642f44656275672f6272616e63682f646576656c6f702f67726170682f62616467652e737667)](https://codecov.io/gh/Innmind/Debug)[![Type Coverage](https://camo.githubusercontent.com/4044fb1dda6eaf7c086a386a25f43f0263561582fd168aa1850ee4f4ace0efbc/68747470733a2f2f73686570686572642e6465762f6769746875622f496e6e6d696e642f44656275672f636f7665726167652e737667)](https://shepherd.dev/github/Innmind/Debug)

[Profiler](https://github.com/Innmind/Profiler) client to help debug applications.

Installation
------------

[](#installation)

```
composer require --dev innmind/debug
```

Usage
-----

[](#usage)

```
use Innmind\Framework\{
    Application,
    Main\Http, // this example also works with Main\Cli
    Middleware\Optional,
};
use Innmind\Profiler\Web\Kernel as Profiler;
use Innmind\Debug\Kernel as Debug;
use Innmind\Url\Path;

new class extends Http {
    protected function configure(Application $app): Application
    {
        return $app
            ->map(Optional::of(
                Debug::class,
                static fn() => Debug::inApp()->operatingSystem(),
            ))
            ->map(new YourAppKernel)
            ->map(Optional::of(
                Profiler::class,
                static fn() => Profiler::inApp(Path::of('var/profiler/')),
            ))
            ->map(Optional::of(
                Debug::class,
                static fn() => Debug::inApp()->app(),
            ));
    }
};
```

The first middleware will record calls to the operating system, you can omit this middleware if you don't want to record it. This middleware is defined first so all decorators to the `OperatingSystem` will be recorded, such as redirections for http calls.

Note

if you don't want to record low level calls to the OS but the one initiated by your app you can define a single middleware via `Optional::of(Debug::class, static fn() => Debug::inApp())` as the last middleware.

The `Profiler` middleware adds the route `GET /_profiler/` where you'll find all the recorded profiles. The profiles are stored in the local `var/profiler/` in clear text.

The last middleware is the one that initiates the recording of profiles.

###  Health Score

55

—

FairBetter than 98% of packages

Maintenance94

Actively maintained with recent releases

Popularity15

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity85

Battle-tested with a long release history

 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.

###  Release Activity

Cadence

Every ~238 days

Recently: every ~535 days

Total

12

Last Release

33d ago

Major Versions

1.3.1 → 2.0.02020-03-26

2.2.0 → 3.0.02023-05-01

3.0.0 → 4.0.02023-11-26

4.0.0 → 5.0.02026-04-12

PHP version history (6 changes)1.0.0PHP ~7.2

2.0.0PHP ~7.4

2.2.0PHP ~7.4|~8.0

3.0.0PHP ~8.1

4.0.0PHP ~8.2

5.0.0PHP ~8.4

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/851425?v=4)[Baptiste Langlade](/maintainers/Baptouuuu)[@Baptouuuu](https://github.com/Baptouuuu)

---

Top Contributors

[![Baptouuuu](https://avatars.githubusercontent.com/u/851425?v=4)](https://github.com/Baptouuuu "Baptouuuu (163 commits)")

---

Tags

httpclidebug

###  Code Quality

Static AnalysisPsalm

Type Coverage Yes

### Embed Badge

![Health badge](/badges/innmind-debug/health.svg)

```
[![Health](https://phpackages.com/badges/innmind-debug/health.svg)](https://phpackages.com/packages/innmind-debug)
```

###  Alternatives

[jbzoo/utils

Collection of PHP functions, mini classes and snippets for everyday developer's routine life.

8321.5M36](/packages/jbzoo-utils)[akhan619/laravel-ses-tracking

A Laravel artisan based package to create the AWS (SES + SNS) infrastructure to receive email event notifications with Http/Https endpoint.

149.9k](/packages/akhan619-laravel-ses-tracking)

PHPackages © 2026

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