PHPackages                             rstgroup/diagnostics-middleware - 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. rstgroup/diagnostics-middleware

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

rstgroup/diagnostics-middleware
===============================

ZendDiagnostics PSR-7 middleware

1.3.0(8y ago)32.1kGPL-3.0PHPPHP &gt;=5.6

Since Mar 18Pushed 8y ago5 watchersCompare

[ Source](https://github.com/rstgroup/diagnostics-middleware)[ Packagist](https://packagist.org/packages/rstgroup/diagnostics-middleware)[ RSS](/packages/rstgroup-diagnostics-middleware/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (4)Dependencies (7)Versions (8)Used By (0)

diagnostics-middleware [![Build Status](https://camo.githubusercontent.com/658508b2f410318a82ab7e04c5b46c999001fc224e5ad8aa5681b45ebcdb4181/68747470733a2f2f7472617669732d63692e6f72672f72737467726f75702f646961676e6f73746963732d6d6964646c65776172652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/rstgroup/diagnostics-middleware)
===================================================================================================================================================================================================================================================================================================================================================

[](#diagnostics-middleware-)

ZendDiagnostics PSR-7 middleware

Usage
-----

[](#usage)

Create your middleware and add it to middleware stack:

```
$runner = new ZendDiagnostics\Runner\Runner();
// add checks to your diagnostics runner

// Create response output factory
$factory = new RstGroup\DiagnosticsMiddleware\ResultResponseFactory\JsonResultResponseFactory();

// Create middleware
$middleware = new RstGroup\DiagnosticsMiddleware\DiagnosticsMiddleware();

// add to your middeware runner
$app = new MiddlewareRunner();
$app->add($middleware);
$app->run();
```

We provide factories (using [`container-interop`](https://github.com/container-interop/container-interop)) and config provider, so implementation should be easy with[`zend-expressive`](https://github.com/zendframework/zend-expressive)or other PSR-7 middleware framework.

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

[](#installation)

Add project name (`rstgroup/diagnostics-middleware`) to composer.json.

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity63

Established project with proven stability

 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 ~214 days

Total

4

Last Release

3054d ago

PHP version history (2 changes)1.0.0PHP ^5.5 || ^7.0

1.1.0PHP &gt;=5.6

### Community

Maintainers

![](https://www.gravatar.com/avatar/bdf6ce4fb39c3f4d1771bbf17b528db91b17526b126d0927e21d66754c15f971?d=identicon)[alabme](/maintainers/alabme)

![](https://www.gravatar.com/avatar/6ffa5d2fe34b04844f854a4fa7ce073c69a500fe6352d69461756abf1b23599d?d=identicon)[rstgroup](/maintainers/rstgroup)

---

Top Contributors

[![snapshotpl](https://avatars.githubusercontent.com/u/312655?v=4)](https://github.com/snapshotpl "snapshotpl (5 commits)")

---

Tags

phppsr-7zend-frameworkpsrpsr-7middlewarediagnostic

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/rstgroup-diagnostics-middleware/health.svg)

```
[![Health](https://phpackages.com/badges/rstgroup-diagnostics-middleware/health.svg)](https://phpackages.com/packages/rstgroup-diagnostics-middleware)
```

###  Alternatives

[mezzio/mezzio

PSR-15 Middleware Microframework

3883.6M96](/packages/mezzio-mezzio)[psr/http-server-middleware

Common interface for HTTP server-side middleware

18091.2M1.5k](/packages/psr-http-server-middleware)[mezzio/mezzio-router

Router subcomponent for Mezzio

265.0M59](/packages/mezzio-mezzio-router)[mezzio/mezzio-helpers

Helper/Utility classes for Mezzio

134.3M67](/packages/mezzio-mezzio-helpers)[mezzio/mezzio-fastroute

FastRoute integration for Mezzio

162.7M51](/packages/mezzio-mezzio-fastroute)[mezzio/mezzio-authentication-oauth2

OAuth2 (server) authentication middleware for Mezzio and PSR-7 applications.

28483.0k2](/packages/mezzio-mezzio-authentication-oauth2)

PHPackages © 2026

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