php-extended/php-curl-object

A library that implements the php-curl-interface library

4.0.0 2022-05-31 08:16 UTC

README

A library that implements the php-curl-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-curl-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 may be used the following way :


use PhpExtended\Curl\Curl;
use PhpExtended\HttpMessage\Uri;

$curl = new Curl();
$curl->setUri(Uri::parseFromString('<your uri there>'));
$curl->execute();
$data = $curl->getData();	// returns a Psr\Http\Message\StreamInterface
$str = $data->__toString();

License

MIT (See license file).