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

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

flankerspb/curl
===============

Simple cURL wrapper

1.0.3(3y ago)186↓90%2BSD-3-ClausePHPPHP &gt;=7.4

Since Aug 11Pushed 2y ago1 watchersCompare

[ Source](https://github.com/flankerspb/curl)[ Packagist](https://packagist.org/packages/flankerspb/curl)[ Docs](https://github.com/flankerspb/curl)[ RSS](/packages/flankerspb-curl/feed)WikiDiscussions main Synced 3w ago

READMEChangelog (4)DependenciesVersions (5)Used By (0)

[![CURL](https://camo.githubusercontent.com/a94c15956a6a6c662c8403798eac4e73a08306860bd5ad59cdd19256b763aca7/68747470733a2f2f6375726c2e73652f6c6f676f2f6375726c2d6c6f676f2e737667)](https://curl.se/)

Simple cURL wrapper
===================

[](#simple-curl-wrapper)

[![License](https://camo.githubusercontent.com/b727d00566bda349327e17e5f5747e23992d79291ec47c0c39a2a443a106e46f/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f666c616e6b65727370622f6375726c)](LICENSE.md)[![GitHub code size in bytes](https://camo.githubusercontent.com/bcb636eee7967ea6e060943ec2ce3f36548a2bd02859b599234d5d3a9d22ea57/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c616e6775616765732f636f64652d73697a652f666c616e6b65727370622f6375726c)](https://camo.githubusercontent.com/bcb636eee7967ea6e060943ec2ce3f36548a2bd02859b599234d5d3a9d22ea57/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c616e6775616765732f636f64652d73697a652f666c616e6b65727370622f6375726c)[![PHP](https://camo.githubusercontent.com/c3875be9b64d9cb4bc713a61a00095d9039a26e3d14b04b889fed654bbe02b28/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d253345253344372e342d373337374144)](https://camo.githubusercontent.com/c3875be9b64d9cb4bc713a61a00095d9039a26e3d14b04b889fed654bbe02b28/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d253345253344372e342d373337374144)

[![Packagist version](https://camo.githubusercontent.com/a530bd337c8cff5b3f07487fc2d440f411abb6acc993ce9208b4972c5006ad29/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f666c616e6b65727370622f6375726c3f6c6162656c3d6c61746573742b76657273696f6e)](https://camo.githubusercontent.com/a530bd337c8cff5b3f07487fc2d440f411abb6acc993ce9208b4972c5006ad29/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f666c616e6b65727370622f6375726c3f6c6162656c3d6c61746573742b76657273696f6e)[![Github downloads](https://camo.githubusercontent.com/83af72408422fa3de964a5d62250d2e8bbf3f1d87f90c96d2582ec13af533690/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f646f776e6c6f6164732f666c616e6b65727370622f6375726c2f746f74616c3f6c6f676f3d676974687562)](https://camo.githubusercontent.com/83af72408422fa3de964a5d62250d2e8bbf3f1d87f90c96d2582ec13af533690/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f646f776e6c6f6164732f666c616e6b65727370622f6375726c2f746f74616c3f6c6f676f3d676974687562)[![Packagist Downloads](https://camo.githubusercontent.com/71ce7b47b40c9d4d50e8acd1f14d2fe2a024635e9553bf3fd0652030745feb85/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f666c616e6b65727370622f6375726c3f6c6f676f3d7061636b6167697374266c6f676f436f6c6f723d253233666666666666)](https://packagist.org/packages/flankerspb/curl)

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

[](#installation)

```
php composer.phar require --prefer-dist flankerspb/curl

```

Usage
-----

[](#usage)

```
$curl = new \fl\curl\Curl([
    CURLOPT_TIMEOUT        => 10,
    CURLOPT_CONNECTTIMEOUT => 5,
    CURLOPT_FOLLOWLOCATION => true,
    CURLOPT_AUTOREFERER    => true,
]);

$responseGet = $curl
    ->setQuery([
        'key1' => 'value',
        'key2' => 'value',
    ])
    ->get('https://www.site.com/');

$responsePost = $curl
    ->setBody([
        'key1' => 'value',
        'key2' => 'value',
    ], true)
    ->post('https://site.com/');
```

```
$curl = new \fl\curl\Curl();

$curl
    ->setHeader('key', 'value')
    ->setCookie('key', 'value')
    ->setProxy('socks5://user:pass@1.1.1.1:1080')
;

$response = new class() implements \fl\curl\ResponseInterface {
    public function init($handle, array $options) : void
    {
        // TODO: Implement init() method.
    }
};

$curl->get('https://www.site.com/', $response);
```

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 91.7% 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 ~85 days

Total

4

Last Release

1155d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1e3b246347cd05321351e574ba47cb5a89c3656540b5718d5c755b21527d87c8?d=identicon)[flankerspb](/maintainers/flankerspb)

---

Top Contributors

[![flankerspb](https://avatars.githubusercontent.com/u/61414453?v=4)](https://github.com/flankerspb "flankerspb (11 commits)")[![Dreamer0x01](https://avatars.githubusercontent.com/u/12978365?v=4)](https://github.com/Dreamer0x01 "Dreamer0x01 (1 commits)")

---

Tags

curlphpcurl

### Embed Badge

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

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

###  Alternatives

[rmccue/requests

A HTTP library written in PHP, for human beings.

3.6k36.3M274](/packages/rmccue-requests)[kriswallsmith/buzz

Lightweight HTTP client

1.9k31.9M462](/packages/kriswallsmith-buzz)[nategood/httpful

A Readable, Chainable, REST friendly, PHP HTTP Client

1.8k17.5M274](/packages/nategood-httpful)[mashape/unirest-php

Unirest PHP

1.3k9.9M163](/packages/mashape-unirest-php)[php-http/curl-client

PSR-18 and HTTPlug Async client with cURL

48348.5M435](/packages/php-http-curl-client)[smi2/phpclickhouse

PHP ClickHouse Client

84711.1M79](/packages/smi2-phpclickhouse)

PHPackages © 2026

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