php-extended / php-curl-object
A library that implements the php-curl-interface library
9.0.7
2026-05-20 01:14 UTC
Requires
- php: >=8.2
- ext-curl: *
- php-extended/php-curl-interface: ^9
- php-extended/php-http-message-psr7: ^9
Requires (Dev)
This package is auto-updated.
Last update: 2026-05-19 23:17:06 UTC
README
A library that implements the php-curl-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.pharfrom their website. - Then run the following command to install this library as dependency :
php composer.phar php-extended/php-curl-object ^9
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).