php-extended / php-curl-object
A library that implements the php-curl-interface library
9.0.11
2026-08-27 23:05 UTC
Requires
- php: >=8.2
- ext-curl: *
- php-extended/php-curl-interface: ^9
- php-extended/php-http-message-psr7: ^9
Requires (Dev)
Suggests
None
Provides
None
Conflicts
None
Replaces
None
This package is auto-updated.
Last update: 2026-08-27 21:06:58 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).