PHPackages                             dmt-software/http-exception-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. dmt-software/http-exception-middleware

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

dmt-software/http-exception-middleware
======================================

psr-15 http exception middleware

1.1.0(1y ago)013.0k↓51.9%mitPHP

Since Apr 6Pushed 1y ago2 watchersCompare

[ Source](https://github.com/dmt-software/http-exception-middleware)[ Packagist](https://packagist.org/packages/dmt-software/http-exception-middleware)[ RSS](/packages/dmt-software-http-exception-middleware/feed)WikiDiscussions main Synced 3w ago

READMEChangelog (3)Dependencies (6)Versions (6)Used By (0)

Http Exception Middleware
=========================

[](#http-exception-middleware)

PSR-15 middleware to transform http exceptions from *pavelsterba/http-exceptions* to PSR-7 responses.

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

[](#installation)

```
composer require dmt-software/http-exception-middleware
```

Usage
-----

[](#usage)

```
use DMT\Http\Exception\Middleware\HttpExceptionMiddleware;
use Psr\Http\Message\ResponseFactoryInterface;
use Psr\Http\Message\ServerRequestInterface;
use Psr\Http\Server\RequestHandlerInterface;

/** @var ResponseFactoryInterface $httpExceptionMiddleware */
$httpExceptionMiddleware = new HttpExceptionMiddleware($responseFactory);

/** @var ServerRequestInterface $request */
/** @var RequestHandlerInterface $handler */
$httpExceptionMiddleware->process($request, $handler);

// if handler throws a HttpException/Exception it will be turned into a psr-7 response
```

###  Health Score

33

—

LowBetter than 72% of packages

Maintenance33

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 57.1% 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 ~219 days

Total

5

Last Release

663d ago

### Community

Maintainers

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

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

---

Top Contributors

[![lingonl](https://avatars.githubusercontent.com/u/3777294?v=4)](https://github.com/lingonl "lingonl (4 commits)")[![proggeler](https://avatars.githubusercontent.com/u/18281353?v=4)](https://github.com/proggeler "proggeler (3 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/dmt-software-http-exception-middleware/health.svg)

```
[![Health](https://phpackages.com/badges/dmt-software-http-exception-middleware/health.svg)](https://phpackages.com/packages/dmt-software-http-exception-middleware)
```

###  Alternatives

[guzzlehttp/psr7

PSR-7 message implementation that also provides common utility methods

7.9k1.1B3.7k](/packages/guzzlehttp-psr7)[cakephp/cakephp

The CakePHP framework

8.8k19.1M1.7k](/packages/cakephp-cakephp)[tempest/framework

The PHP framework that gets out of your way.

2.2k31.1k12](/packages/tempest-framework)[typo3/cms

TYPO3 CMS is a free open source Content Management Framework initially created by Kasper Skaarhoj and licensed under GNU/GPL.

1.2k1.9M122](/packages/typo3-cms)[mezzio/mezzio

PSR-15 Middleware Microframework

3903.8M120](/packages/mezzio-mezzio)[mezzio/mezzio-authentication-oauth2

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

28545.4k3](/packages/mezzio-mezzio-authentication-oauth2)

PHPackages © 2026

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