PHPackages                             madewithlove/jenga - 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. madewithlove/jenga

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

madewithlove/jenga
==================

0.1.0(9y ago)416MITPHPPHP &gt;5.6

Since Apr 7Pushed 9y ago1 watchersCompare

[ Source](https://github.com/madewithlove/jenga)[ Packagist](https://packagist.org/packages/madewithlove/jenga)[ RSS](/packages/madewithlove-jenga/feed)WikiDiscussions master Synced 2mo ago

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

Jenga
=====

[](#jenga)

[![Build Status](https://camo.githubusercontent.com/d92e5d99f80f6e639e40fa3fa880e6103c38731a01e416ef3cadbd7416995ea2/687474703a2f2f696d672e736869656c64732e696f2f7472617669732f6d616465776974686c6f76652f6a656e67612e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/madewithlove/jenga)

PSR-15 middleware stack builder with lazy resolving of middlewares from PSR-11 containers.

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

[](#installation)

```
composer require madewithlove/jenga
```

Usage
-----

[](#usage)

```
$middleware = [
    new RobotsMiddleware(),
    RouterMiddleware::class,
];

$stack = new Stack($psrContainer, $middlewares);

$psrResponse = $stack->call($psrServerRequest);
```

You can also plug in the `Stack` object into a different PSR-15 middleware chain, because it implements the MiddlewareInterface.

```
$psrResponse = $stack->process($psrServerRequest, $delegate);
```

### Example

[](#example)

You can run an example application, if you have cloned this repository, using:

```
php -S 0.0.0.0:8000 example/index.php
```

Testing
-------

[](#testing)

After cloning this project, install its dependencies and run the test suite:

```
composer install
vendor/bin/phpunit
```

License
-------

[](#license)

[MIT](LICENSE)

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity48

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

3321d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/df052a58ecfa5a07fd2b4cb12bb128ab28ff4b8e82fb0831eab81623b898ddb4?d=identicon)[madewithlove-machine-user](/maintainers/madewithlove-machine-user)

![](https://www.gravatar.com/avatar/9937cd6d2eff58e99c75bc2d4a53066e7c9cfdec457c798d5d02d37e6947f419?d=identicon)[hannesvdvreken](/maintainers/hannesvdvreken)

---

Top Contributors

[![hannesvdvreken](https://avatars.githubusercontent.com/u/1410358?v=4)](https://github.com/hannesvdvreken "hannesvdvreken (8 commits)")

---

Tags

httppsr-7middlewarePSR-11psr-15

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/madewithlove-jenga/health.svg)

```
[![Health](https://phpackages.com/badges/madewithlove-jenga/health.svg)](https://phpackages.com/packages/madewithlove-jenga)
```

###  Alternatives

[mezzio/mezzio

PSR-15 Middleware Microframework

3883.6M97](/packages/mezzio-mezzio)[middlewares/utils

Common utils for PSR-15 middleware packages

503.4M92](/packages/middlewares-utils)[psr/http-server-middleware

Common interface for HTTP server-side middleware

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

Authentication middleware for Mezzio and PSR-7 applications

121.6M26](/packages/mezzio-mezzio-authentication)[laminas/laminas-stratigility

PSR-7 middleware foundation for building and dispatching middleware pipelines

586.6M81](/packages/laminas-laminas-stratigility)[middlewares/request-handler

Middleware to execute request handlers

451.6M26](/packages/middlewares-request-handler)

PHPackages © 2026

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