An open API service indexing awesome lists of open source software.

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

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;
```