php-extended/php-http-client-suite

Metapackage that lists all the packages for http psr18 client and client encapsulation


README

Metapackage that lists all the packages for http psr18 client and client encapsulation.

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-client-suite": "^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.

Included packages

Basic Usage

This library provides a configurable factory to be able to build a full featured processor very easily. Just do :


use PhpExtended\HttpClient\ClientFactory;

/* @var $responseFactory \Psr\Http\Message\ResponseFactory */ // psr-17
/* @var $streamFactory   \Psr\Http\Message\StreamFactory   */ // psr-17

$factory = new ClientFactory($responseFactory, $streamFactory);
$client = $factory->createClient();
// $client instanceof \PhpExtended\HttpClient\ClientInterface

You may provides to the createClient() method a configuration object which gathers all the settings for the underlying decorated client(s).

License

MIT (See license file).