php-extended/php-http-message-factory-psr17

An implementation of the psr-17 based on the php-http-message-psr7 library

1.0.1 2019-03-29 07:11 UTC

README

An implementation of the psr-17 based on the php-http-message-psr7 library.

Installation

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-factory-psr17": "^1",
		...
	}

Then run php composer.phar update to install this library. The autoloading of all classes of this library is made through composer's autoloader.

Basic Usage

This library implements the rules of the psr7, which are to be found here.

The interfaces and their implementations are as follows :

InterfaceImplementation
Psr\Http\Message\RequestFactoryInterfacePhpExtended\HttpMessage\RequestFactory
Psr\Http\Message\ResponseFactoryInterfacePhpExtended\HttpMessage\ResponseFactory
Psr\Http\Message\ServerRequestFactoryInterfacePhpExtended\HttpMessage\ServerRequestFactory
Psr\Http\Message\StreamFactoryInterfacePhpExtended\HttpMessage\StreamFactory
Psr\Http\Message\UploadedFileFactoryInterfacePhpExtended\HttpMessage\UploadedFileFactory
Psr\Http\Message\UriFactoryInterfacePhpExtended\HttpMessage\UriFactory

License

MIT (See license file).