Slim Framework 2 middleware
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
src/Slim/Middleware Fix Accept header name in \Slim\Middleware\ContentNegotiation.php Sep 18, 2013
tests Add ContentNegotiation middleware Sep 18, 2013
LICENSE First commit Sep 18, 2013 Fix README typo Sep 18, 2013
composer.json Add ContentNegotiation middleware Sep 18, 2013
phpunit.xml.dist Add ContentNegotiation middleware Sep 18, 2013

Slim Framework Middleware

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

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

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

All pull requests must adhere to the PSR-2 standard.


The Slim Framework is created and maintained by Josh Lockhart. Josh is a senior web developer at New Media Campaigns. Josh also created and maintains PHP: The Right Way, a popular movement in the PHP community to introduce new PHP programmers to best practices and good information.


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