php-extended/php-http-client-curl

A psr-18 compliant client with the curl engine

4.0.1 2022-06-01 21:23 UTC

README

A psr-18 compliant client with the curl engine.

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-curl": "^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 a client using the curl library compiled with php. This library may be used the following way :


use PhpExtended\HttpClient\CurlClient;

$curlProcessor = new CurlClient();
$response = $curlProcessor->sendRequest($request);
$response->getBody()->__toString();

License

MIT (See license file).