PHPackages                             icanhazstring/optimus-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. icanhazstring/optimus-middleware

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

icanhazstring/optimus-middleware
================================

PSR-15/PSR-7 compliant middleware using jenssegers/optimus

v1.0(8y ago)47[1 issues](https://github.com/icanhazstring/optimus-middleware/issues)MITPHPPHP ^7.1

Since May 20Pushed 8y ago1 watchersCompare

[ Source](https://github.com/icanhazstring/optimus-middleware)[ Packagist](https://packagist.org/packages/icanhazstring/optimus-middleware)[ RSS](/packages/icanhazstring-optimus-middleware/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependencies (8)Versions (2)Used By (0)

expressive-optimus-middleware
=============================

[](#expressive-optimus-middleware)

PSR-15 compliant middleware using jenssegers/optimus

[![Build Status](https://camo.githubusercontent.com/224e409d1aad55b028858c7d40874ed30f227c78c810ae7b63d70dfe455465fa/68747470733a2f2f6170692e7472617669732d63692e6f72672f6963616e68617a737472696e672f6f7074696d75732d6d6964646c65776172652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/icanhazstring/optimus-middleware)

Install
-------

[](#install)

You can install the *optimus-middleware* library with composer:

```
$ composer require icanhazstring/optimus-middleware
```

Configuration
-------------

[](#configuration)

### General dependencies

[](#general-dependencies)

For the middleware to work, your `Container` needs a dependency to `Optimus`. You need to provide an instance with the configuration you need.

How to configure see:

### Using expressive

[](#using-expressive)

Include the `OptimusConfigProvider` inside your `config/config.php`:

```
$aggregator = new ConfigAggregator([
    ...
    \icanhazstring\Middleware\OptimusConfigProvider::class,
    ...
]);
```

Make sure the `OptimusConfigProvider` is included before your autoload files!

#### Change decoded attributes

[](#change-decoded-attributes)

If you want to change the attributes the middleware should decode, simply provide the `OptimusMiddleware::CONFIG_KEY` inside your autoload configuration.

```
return [
    \icanhazstring\Middleware\OptimusMiddleware::CONFIG_KEY => ['id']
];
```

###  Health Score

25

—

LowBetter than 36% of packages

Maintenance15

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

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

Unknown

Total

1

Last Release

2957d ago

### Community

Maintainers

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

---

Top Contributors

[![icanhazstring](https://avatars.githubusercontent.com/u/883543?v=4)](https://github.com/icanhazstring "icanhazstring (6 commits)")

---

Tags

expressivemiddlewareoptimuspsr-15psr-7

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/icanhazstring-optimus-middleware/health.svg)

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

###  Alternatives

[symfony/symfony

The Symfony PHP framework

31.4k86.9M2.2k](/packages/symfony-symfony)[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)[moonshine/moonshine

Laravel administration panel

1.3k239.9k75](/packages/moonshine-moonshine)[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)

PHPackages © 2026

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