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

AbandonedArchivedLibrary[Framework](/categories/framework)

slim/middleware
===============

Slim Framework middleware

1.0.0(12y ago)47124.0k↓44.2%14[2 PRs](https://github.com/slimphp/Slim-Middleware/pulls)MITPHPPHP &gt;=5.3.0

Since Sep 18Pushed 4y ago11 watchersCompare

[ Source](https://github.com/slimphp/Slim-Middleware)[ Packagist](https://packagist.org/packages/slim/middleware)[ Docs](http://github.com/codeguy/Slim)[ RSS](/packages/slim-middleware/feed)WikiDiscussions master Synced 1mo ago

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

Slim Framework Middleware
=========================

[](#slim-framework-middleware)

This repository contains a library of optional middleware for your Slim Framework application.

How to Install
--------------

[](#how-to-install)

Update your `composer.json` manifest to require the `slim/middleware` package (see below). Run `composer install` or `composer update` to update your local vendor folder.

```
{
    "require": {
        "slim/middleware": "*"
    }
}

```

How to Contribute
-----------------

[](#how-to-contribute)

### Pull Requests

[](#pull-requests)

1. Fork this repository
2. Create a new branch for each feature or improvement
3. Send a pull request from your feature branch to this repository's master branch

It is very important to separate new features or improvements into separate feature branches, and to send a pull request for each branch. This allows me to review and pull in new features or improvements individually.

### Style Guide

[](#style-guide)

All pull requests must adhere to the [PSR-2](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-2-coding-style-guide.md) standard.

Author
------

[](#author)

The Slim Framework is created and maintained by [Josh Lockhart](https://www.joshlockhart.com). Josh is a senior web developer at [New Media Campaigns](http://www.newmediacampaigns.com/). Josh also created and maintains [PHP: The Right Way](http://www.phptherightway.com/), a popular movement in the PHP community to introduce new PHP programmers to best practices and good information.

License
-------

[](#license)

All code in this repository is released under the MIT public license.

###  Health Score

38

—

LowBetter than 85% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity43

Moderate usage in the ecosystem

Community17

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

4625d ago

### Community

Maintainers

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

![](https://www.gravatar.com/avatar/921c804872f4924b305115ce412a6f109d341b8ef3d5b905c5969275e295fc70?d=identicon)[codeguy](/maintainers/codeguy)

![](https://www.gravatar.com/avatar/0a802102aa155a7660b7402a92e3e48e918276c7a16827e0c5de9c466ab4728d?d=identicon)[l0gicgate](/maintainers/l0gicgate)

---

Top Contributors

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

---

Tags

middlewareslim

### Embed Badge

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

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

###  Alternatives

[slim/csrf

Slim Framework 4 CSRF protection PSR-15 middleware

3512.1M94](/packages/slim-csrf)[slim/http-cache

Slim Framework HTTP cache middleware and service provider

1242.9M27](/packages/slim-http-cache)[davidepastore/slim-validation

A slim middleware for validation based on Respect/Validation

171223.7k3](/packages/davidepastore-slim-validation)[adbario/slim-secure-session-middleware

Secure session middleware for Slim 3 framework

2932.3k2](/packages/adbario-slim-secure-session-middleware)[bnf/slim3-psr15

PSR-15 middleware support for Slim Framework v3

10177.0k5](/packages/bnf-slim3-psr15)[pavlakis/slim-cli

Making a mock GET request through the CLI and enabling the same application entry point on CLI scripts.

3691.9k3](/packages/pavlakis-slim-cli)

PHPackages © 2026

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