PHPackages                             volumnet/curl - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [HTTP &amp; Networking](/categories/http)
4. /
5. volumnet/curl

ActiveLibrary[HTTP &amp; Networking](/categories/http)

volumnet/curl
=============

VolumNet implementation for CURL

1.0.6(2y ago)01111GPL-3.0-or-laterPHP

Since Jan 8Pushed 2y ago1 watchersCompare

[ Source](https://github.com/volumnet/curl)[ Packagist](https://packagist.org/packages/volumnet/curl)[ RSS](/packages/volumnet-curl/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependencies (2)Versions (4)Used By (1)

VolumNet implementation of CURL
===============================

[](#volumnet-implementation-of-curl)

Installation
------------

[](#installation)

```
composer require volumnet/curl

```

Default params
--------------

[](#default-params)

By default VolumNet CURL uses the following params:

- Request timeout: 30s
- User agent string: Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/31.0.1650.57 Safari/537.36
- Cookie file: not used

Usage
-----

[](#usage)

```
/**
 * @param int $timeout Timeout in seconds
 * @param string $userAgent User agent string
 * @param string $cookieFile Cookie file path
 */
$curl = new CURL(10, 'My User Agent', 'cookie.txt');

$curl->timeout = 25;
$curl->userAgent = 'Their User Agent';
$curl->cookieFile = 'cookie2.txt';

/**
 * Connects to URL
 * @param string $url URL to connect
 * @param array $data POST-data (if empty, GET protocol will be used)
 * @param boolean $withHeaders return both headers and response text in array
 * @param 'text'|'json'|'jsonObject'|'jsonArray'|'phpquery' $outputFormat Output format
 * @return string|array(array $headers, mixed $response) Response text or array of headers' array and response text
 */
$result = $curl->getURL('http://httpbin.org/get?aaa=bbb', array(), true, 'jsonArray');

/**
 * Response:
 * Array
 * (
 *     [0] => Array
 *         (
 *             [HTTP/1.1 200 OK] =>
 *             [Connection] => keep-alive
 *             [Server] => meinheld/0.6.1
 *             [Date] => Mon, 08 Jan 2018 13:14:42 GMT
 *             [Content-Type] => application/json
 *             [Access-Control-Allow-Origin] => *
 *             [Access-Control-Allow-Credentials] => true
 *             [X-Powered-By] => Flask
 *             [X-Processed-Time] => 0.00164794921875
 *             [Content-Length] => 507
 *             [Via] => 1.1 vegur
 *             [] =>
 *         )
 *     [1] => Array
 *         (
 *             [args] => Array
 *                 (
 *                     [aaa] => bbb
 *                 )
 *             [headers] => Array
 *                 (
 *                     [Accept] => text/html,application/xhtml+xml,application/xml;q=0.9,image/webp;q=0.8
 *                     [Accept-Language] => ru-RU,ru;q=0.8,en-US;q=0.6,en;q=0.4
 *                     [Cache-Control] => max-age=0
 *                     [Connection] => close
 *                     [Host] => httpbin.org
 *                     [User-Agent] => Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/31.0.1650.57 Safari/537.36
 *                 )
 *             [url] => http://httpbin.org/get?aaa=bbb
 *         )
 * )
 */

$result = $curl->getURL('https://httpbin.org/post?aaa=bbb', array('ccc' => 'ddd'), false, 'jsonObject');
/**
 * Response:
 * stdClass Object
 * (
 *     [args] => stdClass Object
 *         (
 *             [aaa] => bbb
 *         )
 *     [data] =>
 *     [files] => stdClass Object
 *         (
 *         )
 *     [form] => stdClass Object
 *         (
 *             [ccc] => ddd
 *         )
 *     [headers] => stdClass Object
 *         (
 *             [Accept] => text/html,application/xhtml+xml,application/xml;q=0.9,image/webp;q=0.8
 *             [Accept-Language] => ru-RU,ru;q=0.8,en-US;q=0.6,en;q=0.4
 *             [Cache-Control] => max-age=0
 *             [Connection] => close
 *             [Content-Length] => 7
 *             [Content-Type] => application/x-www-form-urlencoded
 *             [Host] => httpbin.org
 *             [User-Agent] => Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/31.0.1650.57 Safari/537.36
 *         )
 *     [json] =>
 *     [url] => https://httpbin.org/post?aaa=bbb
 * )
 */

```

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~1128 days

Total

3

Last Release

840d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/5512648?v=4)[Volume Networks](/maintainers/volumnet)[@volumnet](https://github.com/volumnet)

---

Top Contributors

[![volumnet](https://avatars.githubusercontent.com/u/5512648?v=4)](https://github.com/volumnet "volumnet (8 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/volumnet-curl/health.svg)

```
[![Health](https://phpackages.com/badges/volumnet-curl/health.svg)](https://phpackages.com/packages/volumnet-curl)
```

###  Alternatives

[php-http/cache-plugin

PSR-6 Cache plugin for HTTPlug

25126.1M81](/packages/php-http-cache-plugin)[illuminate/http

The Illuminate Http package.

11937.9M6.8k](/packages/illuminate-http)[rdkafka/rdkafka

A PHP extension for Kafka

2.2k24.3k1](/packages/rdkafka-rdkafka)[httpsoft/http-message

Strict and fast implementation of PSR-7 and PSR-17

87965.9k114](/packages/httpsoft-http-message)[mezzio/mezzio-router

Router subcomponent for Mezzio

265.4M89](/packages/mezzio-mezzio-router)[serpapi/google-search-results-php

Get Google, Bing, Baidu, Ebay, Yahoo, Yandex, Home depot, Naver, Apple, Duckduckgo, Youtube search results via SerpApi.com

69127.2k](/packages/serpapi-google-search-results-php)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
