php-extended/php-http-client-factory-object

This library is an implementation of the php-extended/php-http-client-factory-interface library

4.0.0 2022-05-31 08:29 UTC

README

This library is an implementation of the php-extended/php-http-client-factory-interface library.

coverage build status

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-factory-object": "^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 provides a configurable factory to be able to build a full featured processor very easily. Just do :


use PhpExtended\HttpClient\ClientFactory;

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

You may use the clientFactory methods to push configuration objects which gathers all the settings for the underlying decorated client(s).

License

MIT (See license file).