php-extended / php-http-client-factory-object
This library is an implementation of the php-extended/php-http-client-factory-interface library
6.0.5
2023-08-25 10:21 UTC
Requires
- php: >=7.4
- php-extended/php-blocklist-catalog: ^6
- php-extended/php-certificate-provider-mozilla: ^6
- php-extended/php-http-client-accept: ^6
- php-extended/php-http-client-accept-charset: ^6
- php-extended/php-http-client-accept-language: ^6
- php-extended/php-http-client-blocklist: ^6
- php-extended/php-http-client-cache-psr6: ^6
- php-extended/php-http-client-connection: ^6
- php-extended/php-http-client-cookiebag: ^6
- php-extended/php-http-client-curl: ^6
- php-extended/php-http-client-date: ^6
- php-extended/php-http-client-delay: ^6
- php-extended/php-http-client-dnt: ^6
- php-extended/php-http-client-factory-interface: ^6
- php-extended/php-http-client-gzip: ^6
- php-extended/php-http-client-host: ^6
- php-extended/php-http-client-logger: ^6
- php-extended/php-http-client-native: ^6
- php-extended/php-http-client-origin: ^6
- php-extended/php-http-client-redirecter: ^6
- php-extended/php-http-client-referrer: ^6
- php-extended/php-http-client-retry: ^6
- php-extended/php-http-client-simple-cache-psr16: ^6
- php-extended/php-http-client-trycatch: ^6
- php-extended/php-http-client-uir: ^6
- php-extended/php-http-client-user-agent: ^6
- php-extended/php-http-client-zip: ^6
- php-extended/php-http-message-factory-psr17: ^6
- php-extended/php-mime-type-object: ^6
- php-extended/php-tld-provider-interface: ^6
- php-extended/php-tld-provider-mozilla: ^6
- php-extended/php-url-redirecter-object: ^6
- php-extended/polyfill-php80-stringable: ^1.2
Requires (Dev)
This package is auto-updated.
Last update: 2023-11-25 11:17:25 UTC
README
This library is an implementation of the php-extended/php-http-client-factory-interface library.
Installation
The installation of this library is made via composer and the autoloading of all classes of this library is made through their autoloader.
- Download
composer.phar
from their website. - Then run the following command to install this library as dependency :
php composer.phar php-extended/php-http-client-factory-object ^6
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).