PHPackages                             mouf/silex-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. [Framework](/categories/framework)
4. /
5. mouf/silex-middleware

ActiveLibrary[Framework](/categories/framework)

mouf/silex-middleware
=====================

This package provides a StackPHP middleware that can be used to plug a Silex application

1.0.x-dev(11y ago)13821MITPHPPHP &gt;=5.4.0

Since May 12Pushed 11y ago15 watchersCompare

[ Source](https://github.com/thecodingmachine/silex-middleware)[ Packagist](https://packagist.org/packages/mouf/silex-middleware)[ Docs](https://github.com/thecodingmachine/silex-middleware)[ RSS](/packages/mouf-silex-middleware/feed)WikiDiscussions 1.0 Synced yesterday

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

Silex middleware for StackPHP
=============================

[](#silex-middleware-for-stackphp)

This package contains a [StackPHP middleware](http://stackphp.com/) that unables you to push a Silex application directly on the middleware stack. The Silex application will try to handle requests but instead of sending a 404 response if nothing is found, the next middleware on the stack will be called.

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

[](#installation)

Through [Composer](https://getcomposer.org/) as [mouf/silex-middleware](https://packagist.org/packages/mouf/silex-middleware).

Usage
-----

[](#usage)

Simply use the `SilexMiddleWare` class in your middleware stack:

```
use Mouf\StackPhp\SilexMiddleware;
use Silex\Application;
use Stack\Builder;

$app = ...

$silex = new Silex\Application();
$silex->get('/hello', function(Request $request) {
    return 'Hello World!';
});

$stack = (new Stack\Builder())
    ->push(SilexMiddleWare::class, $silex);

$app = $stack->resolve($app);
```

###  Health Score

25

—

LowBetter than 35% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity42

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

4070d ago

### Community

Maintainers

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

---

Top Contributors

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

---

Tags

stacksilexStackPHP

### Embed Badge

![Health badge](/badges/mouf-silex-middleware/health.svg)

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

###  Alternatives

[symfony/framework-bundle

Provides a tight integration between Symfony components and the Symfony full-stack framework

3.6k251.7M11.6k](/packages/symfony-framework-bundle)[mouf/symfony-middleware

This package provides a StackPHP middleware that can be used to use a Symfony application as a middleware (instead of an app)

2335.4k](/packages/mouf-symfony-middleware)

PHPackages © 2026

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