https://github.com/http-interop/http-server-handler
Interface for PSR-15 server request handler
https://github.com/http-interop/http-server-handler
Last synced: 5 months ago
JSON representation
Interface for PSR-15 server request handler
- Host: GitHub
- URL: https://github.com/http-interop/http-server-handler
- Owner: http-interop
- License: mit
- Created: 2017-11-06T18:12:04.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-06-20T12:31:18.000Z (almost 8 years ago)
- Last Synced: 2025-09-19T03:07:10.360Z (9 months ago)
- Language: PHP
- Homepage:
- Size: 42 KB
- Stars: 20
- Watchers: 12
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
HTTP Server Handler
===================
# Deprecation warning!
**Starting January 22nd, 2018 http-interop is officially deprecated in favor of
[PSR-15][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.
[psr-15]: https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-15-request-handlers.md
## 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:
```json
{
"require": {
"http-interop/http-server-handler": "^1.0"
}
}
```
with:
```json
{
"require": {
"psr/http-server-handler": "^1.0"
}
}
```
### Update Code
Replace any references to:
```php
use Interop\Http\Server\RequestHandlerInterface;
```
with:
```php
use Psr\Http\Server\RequestHandlerInterface;
```