PHPackages                             slepic/psr-http-message-tracy-panel - 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. slepic/psr-http-message-tracy-panel

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

slepic/psr-http-message-tracy-panel
===================================

A panel for Tracy, that traces PSR HTTP messages travelling between your PHP backend and other HTTP servers.

0.3.3(4y ago)920.2k[3 issues](https://github.com/slepic/psr-http-message-tracy-panel/issues)BSD-3-ClauseHTMLPHP &gt;=5.6CI failing

Since Apr 27Pushed 4y ago1 watchersCompare

[ Source](https://github.com/slepic/psr-http-message-tracy-panel)[ Packagist](https://packagist.org/packages/slepic/psr-http-message-tracy-panel)[ RSS](/packages/slepic-psr-http-message-tracy-panel/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (6)Dependencies (5)Versions (7)Used By (0)

[![Build Status](https://camo.githubusercontent.com/8acd820b22f440da657c89e03e817689deadfac6f48a1f7fb2fffcf5dc39c3d2/68747470733a2f2f7472617669732d63692e6f72672f736c657069632f7073722d687474702d6d6573736167652d74726163792d70616e656c2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/slepic/psr-http-message-tracy-panel)[![Style Status](https://camo.githubusercontent.com/ffb444922eee2831af93316fce3c15813672d985066be51e3769a47819478ab4/68747470733a2f2f7374796c6563692e696f2f7265706f732f3138313733323831372f736869656c64)](https://styleci.io/repos/181732817)

psr-http-message-tracy-panel
============================

[](#psr-http-message-tracy-panel)

A panel for [Tracy](https://tracy.nette.org/), that traces PSR HTTP messages travelling between your PHP backend and other HTTP servers.

[![Tracy Panel](https://github.com/slepic/psr-http-message-tracy-panel/raw/master/docs/images/panel.png)](https://github.com/slepic/psr-http-message-tracy-panel/raw/master/docs/images/panel.png)

[![Tracy Bar](https://github.com/slepic/psr-http-message-tracy-panel/raw/master/docs/images/bar.png)](https://github.com/slepic/psr-http-message-tracy-panel/raw/master/docs/images/bar.png)

Requirements
------------

[](#requirements)

PHP ^5.6 or ^7.0

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

[](#installation)

Install with composer:

`composer require --dev slepic/psr-http-message-tracy-panel`

Usage
-----

[](#usage)

Basicaly you just need to:

- create the bar panel using the factory [`Slepic\Tracy\Bar\PsrHttpMessagePanel\Factory`](https://github.com/slepic/psr-http-message-tracy-panel/blob/master/src/Factory.php) and register it with `Tracy\Debugger::getBar()->addPanel()`.
- to create the panel instance you will need to feed it with an iterator of instances of [`Slepic\Http\Transfer\Log\LogInterface`](https://github.com/slepic/http-transfer/blob/master/src/Log/LogInterface.php).
- simple implementation of such iterator is included in the [`slepic/http-transfer`](https://packagist.org/packages/slepic/http-transfer) package and is named [`Slepic\Psr\Http\Transfer\Log\ArrayStorage`](https://github.com/slepic/http-transfer/blob/master/src/Log/ArrayStorage.php), which simply stores transfer log in a PHP array.
- And lastly, you need to feed the storage with the transfer logs using your http client.

    - The [`slepic/http-transfer`](https://packagist.org/packages/slepic/http-transfer) package provides [`HistoryObserver`](https://github.com/slepic/http-transfer/blob/master/src/History/HistoryObserver.php) class which allows to easily collect the logs into your storage using your favourite http client.
    - Check [`slepic/http-transfer-observer-consumer`](https://packagist.org/providers/slepic/http-transfer-observer-consumer) for a list of adapters to see if there is one for your http client.

For complete usage exaple see [this example!](https://github.com/slepic/psr-http-message-tracy-panel/blob/master/examples/plain.php)

And of course it is super simple to register the panel in Nette's DI as described [here](https://tracy.nette.org/en/extensions).

Changelog
---------

[](#changelog)

### 0.3.1

[](#031)

- Improved readme
- Removed dependency on tracy as it is dependent indirectly (through slepic/teplated-tracy-bar-panel).
- Fixed dependecies to a versioned revision instead of just latest commit to master.
- Changed travis setup to only run tests in oldest and newest php versions supported by this package (that is 5.6 and 7.3).

### 0.3.0

[](#030)

- Removed class PsrHttpMessagePanel
- Factory is now used to create the panel, using TemplatedBarPanel class from [`slepic/templated-tracy-bar-panel`](https://packagist.org/packages/slepic/templated-tracy-bar-panel) package as the target implementation.
- Slepic\\Psr namespace is now replaced by package [`slepic/http-transfer`](https://packagist.org/packages/slepic/http-transfer)
- support for guzzle moved to [`slepic/guzzle-http-observing-middleware`](https://packagist.org/packages/slepic/guzzle-http-observing-middleware)
- BC break: totally everythig

### 0.2.0

[](#020)

- Added support for transfer duration
- Improved panel layout

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance13

Infrequent updates — may be unmaintained

Popularity32

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity49

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.

###  Release Activity

Cadence

Every ~197 days

Recently: every ~246 days

Total

6

Last Release

1639d ago

PHP version history (2 changes)0.1.0PHP ^5.6 || ^7.0

0.3.2PHP &gt;=5.6

### Community

Maintainers

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

---

Top Contributors

[![slepic](https://avatars.githubusercontent.com/u/8199404?v=4)](https://github.com/slepic "slepic (37 commits)")

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/slepic-psr-http-message-tracy-panel/health.svg)

```
[![Health](https://phpackages.com/badges/slepic-psr-http-message-tracy-panel/health.svg)](https://phpackages.com/packages/slepic-psr-http-message-tracy-panel)
```

###  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)
