php-extended/php-curl-object

A library that implements the php-curl-interface library


README

A library that implements the php-curl-interface library

coverage build status

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-curl-object ^7

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).