PHPackages                             thecodingmachine/stratigility-harmony - 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. [Framework](/categories/framework)
4. /
5. thecodingmachine/stratigility-harmony

ActiveLibrary[Framework](/categories/framework)

thecodingmachine/stratigility-harmony
=====================================

Cross-framework module for Stratigility

v0.3.0(9y ago)059.3k2MITPHPPHP &gt;=7.0

Since Mar 2Pushed 7y ago8 watchersCompare

[ Source](https://github.com/thecodingmachine/stratigility-harmony)[ Packagist](https://packagist.org/packages/thecodingmachine/stratigility-harmony)[ RSS](/packages/thecodingmachine-stratigility-harmony/feed)WikiDiscussions 2.1 Synced 2mo ago

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

Stratigility universal module
=============================

[](#stratigility-universal-module)

This package integrates Stratigility in any [container-interop](https://github.com/container-interop/service-provider) compatible framework/container.

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

[](#installation)

```
composer require thecodingmachine/stratigility-harmony

```

If your container supports autodiscovery by thecodingmachine/discovery, there is nothing more to do. Otherwise, you need to register the [`TheCodingMachine\StratigilityServiceProvider`](src/StratigilityServiceProvider.php) and the `TheCodingMachine\MiddlewareListServiceProvider` into your container.

Refer to your framework or container's documentation to learn how to register *service providers*.

Usage
-----

[](#usage)

This module registers 2 services in your container:

- A Zend Diactoros Server under the `Zend\Diactoros\Server` key. Use the `listen` method to answer calls:

    ```
    $server = $container->get(Server::class);
    $server->listen();
    ```
- A MiddlewarePipe instance under the `Zend\Stratigility\MiddlewarePipe` key. Use this middleware pipe to add your own middlewares:

    ```
    $middlewarePipe = $container->get(MiddlewarePipe::class);
    $middlewarePipe->pipe($myMiddleware);
    ```

About the middlewares priority queue
------------------------------------

[](#about-the-middlewares-priority-queue)

Depending on the middleware you are registering, you generally have a fairly good idea of the order your middleware should run compared to other middlewares. The Stratigility service provider will use the middleware list provided by [thecodingmachine/middleware-list-universal-module](https://github.com/thecodingmachine/middleware-list-universal-module).

Please have a look at this package to see how to add middlewares automatically.

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity28

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 92.3% 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 ~181 days

Recently: every ~149 days

Total

6

Last Release

2817d ago

Major Versions

v0.2.0 → 1.0.x-dev2017-01-05

v0.3.0 → 2.0.x-dev2017-07-24

2.1.x-dev → 3.0.x-dev2018-08-23

PHP version history (2 changes)v0.2.0PHP &gt;=7.0

3.0.x-devPHP &gt;=7.1

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1104771?v=4)[mouf](/maintainers/mouf)[@Mouf](https://github.com/Mouf)

![](https://avatars.githubusercontent.com/u/1847918?v=4)[TheCodingMachine](/maintainers/thecodingmachine)[@thecodingmachine](https://github.com/thecodingmachine)

---

Top Contributors

[![moufmouf](https://avatars.githubusercontent.com/u/1290952?v=4)](https://github.com/moufmouf "moufmouf (12 commits)")[![Ngob](https://avatars.githubusercontent.com/u/2749238?v=4)](https://github.com/Ngob "Ngob (1 commits)")

### Embed Badge

![Health badge](/badges/thecodingmachine-stratigility-harmony/health.svg)

```
[![Health](https://phpackages.com/badges/thecodingmachine-stratigility-harmony/health.svg)](https://phpackages.com/packages/thecodingmachine-stratigility-harmony)
```

###  Alternatives

[refinery29/piston

Opinionated Micro Framework for APIs

1936.8k](/packages/refinery29-piston)

PHPackages © 2026

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