Another implementation of the psr7 : php-fig/http-message interface library
Another implementation of the psr7 : php-fig/http-message interface library
The installation of this library is made via composer.
Download composer.phar
from their website.
Then add to your composer.json :
"require": {
...
"php-extended/php-http-message-psr7": "^2",
...
}
Then run php composer.phar update
to install this library.
The autoloading of all classes of this library is made through composer's autoloader.
This library implements the rules of the psr7, which are to be found here.
The interfaces and their implementations are as follows :
Interface | Implementation |
---|---|
Psr\Http\Message\MessageInterface |
PhpExtended\HttpMessage\Message |
Psr\Http\Message\RequestInterface |
PhpExtended\HttpMessage\Request |
Psr\Http\Message\ResponseInterface |
PhpExtended\HttpMessage\Response |
Psr\Http\Message\ServerRequestInterface |
PhpExtended\HttpMessage\ServerRequest |
Psr\Http\Message\StreamInterface |
PhpExtended\HttpMessage\StringStream |
PhpExtended\HttpMessage\FileStream |
|
Psr\Http\Message\UploadedFileInterface |
PhpExtended\HttpMessage\UploadedFile |
Psr\Http\Message\UriInterface |
PhpExtended\HttpMessage\Uri |
MIT (See license file).