http-interop / http-server-handler
Common interface for HTTP server-side request handler
Installs: 20 972
Dependents: 6
Suggesters: 0
Security: 0
Stars: 19
Watchers: 13
Forks: 1
Open Issues: 0
Requires
- php: >=7.0
- psr/http-message: ^1.0
- psr/http-server-handler: ^1.0
Conflicts
- http-interop/http-middleware: >=0.5
This package is auto-updated.
Last update: 2022-02-01 13:10:58 UTC
README
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-handler
as soon as possible.
Changes Required
There are two changes required to use the official psr/http-server-handler
package:
Update Composer
Replace the line in composer.json
that reads:
{ "require": { "http-interop/http-server-handler": "^1.0" } }
with:
{ "require": { "psr/http-server-handler": "^1.0" } }
Update Code
Replace any references to:
use Interop\Http\Server\RequestHandlerInterface;
with:
use Psr\Http\Server\RequestHandlerInterface;