php-extended/php-http-processor-interface

This package is abandoned and no longer maintained. The author suggests using the psr/http-client package instead.

An interface library to use with the psr/http-message from the psr7 to process external resources

3.1.0 2018-06-06 20:24 UTC

README

An interface library to use with the psr/http-message from the psr7 to process external resources

This library follows the naming convention of the psr/http-message 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-processor-interface": "~3",
		...
	}

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 is an interface only interface. For a concrete implementation, see php-extended/php-http-stream-processor.

This library is a wrapper to http stream engines to connect to the internet that may be used indifferently with the http-message psr7 specification. For example, implementations may use internally the http stream buffer of file_get_conents() or may use another more advanced technology like curl or a complete php rewrite of it.

This library provides two processor interfaces, whose jobs are to convert Psr\Http\Message\RequestInterface objects to Psr\Http\Message\ResponseInterface objects, one that is synchronous, and one which is a queue and may be used asynchronously.

This library provides also two factory interfaces that must be used in conjunction with the http engine, because their parametrization can change from engine to engine.

License

MIT (See license file).