Skip to content
This repository was archived by the owner on Feb 17, 2026. It is now read-only.

About

Interface for PSR-15 server middleware

Resources

Stars

22 stars

Watchers

12 watching

Forks

Latest commit

 

History

65 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

HTTP Server Middleware

Deprecation warning!

Starting January 22nd, 2018 http-interop is officially deprecated in favor of PSR-15.

From v1.1, this package directly extends PSR-15 interfaces to provide backwards compatibility and should no longer be added to new projects.

Please switch to psr/http-server-middleware as soon as possible.

Version Constraint Warning

To continue using this package for backwards compatibility, use the following version constraint to avoid a type error:

{
    "require": {
        "http-interop/http-server-middleware": "^1.1.1"
    }
}

See issue #6 for details.

Changes Required

There are two changes required to use the official psr/http-server-middleware package:

Update Composer

Replace the line in composer.json that reads:

{
    "require": {
        "http-interop/http-server-middleware": "^1.0"
    }
}

with:

{
    "require": {
        "psr/http-server-middleware": "^1.0"
    }
}

Update Code

Replace any references to:

use Interop\Http\Server\MiddlewareInterface;

with:

use Psr\Http\Server\MiddlewareInterface;

About

Interface for PSR-15 server middleware

Resources

Stars

22 stars

Watchers

12 watching

Forks

Releases

Packages

Used by

Contributors

Languages