PHPackages                             web-debug/core - 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. web-debug/core

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

web-debug/core
==============

Implementation of HTTP Web debug protocol (core library)

11.2k1[1 issues](https://github.com/fe3dback/web-debug-php-core/issues)[1 PRs](https://github.com/fe3dback/web-debug-php-core/pulls)PHP

Since Apr 5Pushed 6y ago1 watchersCompare

[ Source](https://github.com/fe3dback/web-debug-php-core)[ Packagist](https://packagist.org/packages/web-debug/core)[ RSS](/packages/web-debug-core/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependenciesVersions (1)Used By (0)

Web-Debug PHP Library
=====================

[](#web-debug-php-library)

[![Build Status](https://camo.githubusercontent.com/75a924e347d043bfd54f6d7a25673983d0aca60fc1c3b4993d7bd3e1a833f05a/68747470733a2f2f7472617669732d63692e6f72672f666533646261636b2f7765622d64656275672d7068702d636f72652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/fe3dback/web-debug-php-core)

This is official PHP core-library with server-side implementation of

You should use it for all another level1 bundles/modules for another frameworks and cms.

install
-------

[](#install)

```
$ composer require web-debug/core
```

Support of scheme versions:

Versionsupported?1yesHow to use
----------

[](#how-to-use)

```
use WebDebug\Builders\Events\EventLog;
use WebDebug\Builders\Types\TypeTagMultipart;
use WebDebug\Profiler;

// use any psr-6/psr-16 cache for persistent storage
$cache = new Symfony\Component\Cache\Simple\FilesystemCache('cache', 60, 'cache');

// make new profiler storage object
$profiler = new Profiler(
    version: Profiler::VERSION_1,
    storage: $cache,
    isProduction: false
);

// create some events
$log = new EventLog('Hello world');
$log->context = [
    'something' => 123
];
$log->tags->add(new TypeTagMultipart('name', 'value_for_filter'));
$log->tags->add(new TypeTagMultipart('component', 'kernel'));

// add events to scheme
$profiler->addEvent($log);
$profiler->addEvent(new EventLog('Another message'));
$profiler->addEvent(new EventLog('And another'));

// save generated json to storage
$uuid = $profiler->push(); // bdb01adb-895b-4a8b-b1b3-bbd5aca237fe
$json = $profiler->pop($uuid); // json for HTTP response
```

This will generate valid scheme described here:

```
{
   "id":"bdb01adb-895b-4a8b-b1b3-bbd5aca237fe",
   "version":1,
   "events":[
      {
         "type":"log",
         "payload":{
            "message":"Hello world",
            "context":"{\"something\":123}"
         },
         "tags":[
            "name:value_for_filter",
            "component:kernel"
         ],
         "importance":1,
         "time":1554234913359,
         "nested":[]
      },
      {
         "type":"log",
         "payload":{
            "message":"Another message"
         },
         "tags":[],
         "importance":1,
         "time":1554234913447,
         "nested":[]
      },
      {
         "type":"log",
         "payload":{
            "message":"And another"
         },
         "tags":[],
         "importance":1,
         "time":1554234913506,
         "nested":[]
      }
   ]
}
```

See list of available events here:

### How to get headers for HTTP Transport

[](#how-to-get-headers-for-http-transport)

This transport require two headers:

```
X-Http-Debug-Id: ef95a542-25a3-4f71-a0e9-640c92f43813
X-Http-Debug-Api: /_profile/?id=

```

```
$profiler = new Profiler(..);
$xHttpDebugId = $profiler->uuid; // ef95a542-25a3-4f71-a0e9-640c92f43813
$xHttpDebugApi = '';
```

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity38

Early-stage or recently created project

 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/e6fad0f59a23c50af19966a2cd9351a5b70be5511831b7ce7f7e6dac52942e5b?d=identicon)[fe3dback](/maintainers/fe3dback)

---

Top Contributors

[![fe3dback](https://avatars.githubusercontent.com/u/2073883?v=4)](https://github.com/fe3dback "fe3dback (13 commits)")

### Embed Badge

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

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

###  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.6k](/packages/spatie-craft-ray)

PHPackages © 2026

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