PHPackages                             nicolus/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. nicolus/curl

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

nicolus/curl
============

A simple curl OO wrapper

1.0.4(11y ago)012PHPPHP &gt;=5.4.0

Since Dec 17Pushed 11y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (5)Used By (0)

cURL
====

[](#curl)

A simple curl OO wrapper.

installation : add nicolus/curl to your composer.json

usage examples :

```
use Curl\Curl;

try {
    $url = "http://www.google.com";
    //A simple GET request (with followlocation and no timeout by default)
    echo Curl::get($url);

    //A simple POST request (multipart) :
    echo Curl::post($url, ["param1" => "value1" ]);

    //A simple POST request (x-www-urlencoded) :
    echo Curl::post($url, "param1=value1&param2=value2");

    //Using a proxy :
    echo (new Curl)
        ->setUrl($url)
        ->setProxy("myproxy.com:31280", "username", "password")
        ->request();

    //A more complex request
    $curl = new Curl;
    echo $curl
        ->setUrl($url)
        ->addHeaders(['X-CUSTOMHEADER: aaa', 'pipoheader: bbb'])
        ->addHeaders('trololo: ccc')
        ->setAuth("Username", "Password")
        ->setTimeout(30)
        ->setUserAgent(Curl::UA_FIREFOX)
        ->request();

    //Get info for the last request :
    print_r($curl->getInfo());

} catch (Exception $e) {
    echo "erreur avec une requête curl : " . $e->getMessage() ."\n";
    echo "code : " . $e->getCode() ."\n";
}
```

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity61

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 ~0 days

Total

4

Last Release

4206d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/25a8f14dbe1d52dc6f458f69988c4491a2f8cb9ba4c3d30eb963410d8b2ee9df?d=identicon)[nicolus](/maintainers/nicolus)

---

Top Contributors

[![nicolus](https://avatars.githubusercontent.com/u/3315078?v=4)](https://github.com/nicolus "nicolus (6 commits)")

### Embed Badge

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

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

###  Alternatives

[php-http/cache-plugin

PSR-6 Cache plugin for HTTPlug

25025.5M80](/packages/php-http-cache-plugin)[illuminate/http

The Illuminate Http package.

11937.2M6.5k](/packages/illuminate-http)[rdkafka/rdkafka

A PHP extension for Kafka

2.2k20.0k1](/packages/rdkafka-rdkafka)[httpsoft/http-message

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

87930.4k113](/packages/httpsoft-http-message)[mezzio/mezzio-router

Router subcomponent for Mezzio

265.3M84](/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

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

PHPackages © 2026

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