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

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

bca/curl
========

cURL wrapper for PHP applications.

2.2.1(11y ago)1144.0k↓50%5MITJavaScriptPHP &gt;=5.3.0

Since Oct 25Pushed 11y ago2 watchersCompare

[ Source](https://github.com/brodkinca/BCA-PHP-CURL)[ Packagist](https://packagist.org/packages/bca/curl)[ Docs](https://github.com/brodkinca/BCA-PHP-CURL)[ RSS](/packages/bca-curl/feed)WikiDiscussions develop Synced 1mo ago

READMEChangelog (2)Dependencies (2)Versions (15)Used By (0)

BCA-PHP-CURL
============

[](#bca-php-curl)

Work with remote servers via cURL much easier than using the native PHP bindings.

[![Build Status](https://camo.githubusercontent.com/31cd170b75f7c495053a0e21bbd85b1c57c58abbbccac3fb801a591ea3cd79b3/68747470733a2f2f7365637572652e7472617669732d63692e6f72672f62726f646b696e63612f4243412d5048502d4355524c2e706e67)](http://travis-ci.org/brodkinca/BCA-PHP-CURL)[![Dependencies Status](https://camo.githubusercontent.com/b21f163f96ce433d8884dcddb10c1e8dc6da39183e35846f31360bd5f1d05848/68747470733a2f2f646570656e64696e672e696e2f62726f646b696e63612f4243412d5048502d4355524c2e706e67)](http://depending.in/brodkinca/BCA-PHP-CURL)[![Coverage Status](https://camo.githubusercontent.com/60c0daa7535a098c026e105b937e64bc69b24a682d21c1bdb4da0604254a295d/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f62726f646b696e63612f4243412d5048502d4355524c2f62616467652e706e673f6272616e63683d6d6173746572)](https://coveralls.io/r/brodkinca/BCA-PHP-CURL?branch=master)[![SensioLabsInsight](https://camo.githubusercontent.com/df98127a5f1bbded63d449636ca2b4f6b9e01d4fecbf91a1ff97fa074d44321f/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f37646462613231372d666563632d343731652d386339652d6132633563396664396234382f6d696e692e706e67)](https://insight.sensiolabs.com/projects/7ddba217-fecc-471e-8c9e-a2c5c9fd9b48)

[![Latest Stable Version](https://camo.githubusercontent.com/a3a8fb4bb29fad8d133503223a036cd8f693a099a1761aa8d4c608a9cfa86f2a/68747470733a2f2f706f7365722e707567782e6f72672f6263612f6375726c2f762f737461626c652e706e67)](https://packagist.org/packages/bca/curl)[![Total Downloads](https://camo.githubusercontent.com/665eabbaea981868c5384cecebad8cacbb5a9fe32a63a362385bb6b3ed2ef78d/68747470733a2f2f706f7365722e707567782e6f72672f6263612f6375726c2f646f776e6c6f6164732e706e67)](https://packagist.org/packages/bca/curl)[![License](https://camo.githubusercontent.com/66d8e35584fd52e073b47f3aa1e9451ba0f261280c6818cb4c7771c563df6168/68747470733a2f2f706f7365722e707567782e6f72672f6263612f6375726c2f6c6963656e73652e706e67)](https://packagist.org/packages/bca/curl)

Requirements
------------

[](#requirements)

1. PHP 5.3+
2. libcurl

Features
--------

[](#features)

- POST/GET/PUT/DELETE requests over HTTP
- HTTP Authentication
- Follows redirects
- Returns error string
- Provides debug information
- Cookies

Install
-------

[](#install)

### Using Composer

[](#using-composer)

Just add the following to the require section your composer.json file:

```
"bca/curl": "2.*"

```

Then execute `composer install` to pull down the latest release.

Package details can be found at .

### Manually via Github

[](#manually-via-github)

You may download a specific version from  or visit the main repository at  to download unreleased code or pull down a copy via git.

Versioning
----------

[](#versioning)

This library will be maintained under the Semantic Versioning guidelines.

Releases will be numbered with the following format:

```
..

```

And constructed with the following guidelines:

- Breaking backward compatibility bumps the major (and resets the minor and patch)
- New additions without breaking backward compatibility bumps the minor (and resets the patch)
- Bug fixes and misc changes bump the patch

Composer users who would like more granular control over upgrades should restrict their installation to patch updates only using this require key:

```
"bca/curl": "2.1.*"

```

For more information on SemVer, please visit .

Examples
--------

[](#examples)

Simple requests can be constructed with just a URL and a method.

```
$request = new CURL('http://example.com/');
$response = $request->get();
```

More complex requests build upon that concept by adding methods to the request.

```
$request = new CURL('http://example.com/');
$response = $request
	->param('aaa', 'bbb')
	->param('xxx', 'yyy')
	->post();

echo $response;
```

Advanced requests can be built by adding even more methods.

```
$request = new CURL('http://example.com/');
$response = $request
    ->param('aaa', 'bbb')
    ->param('xxx', 'yyy')
    ->option(CURLOPT_PROXY, '10.0.0.1')
    ->auth('username', 'password', 'digest')
    ->delete();

echo $response;
```

###  Health Score

37

—

LowBetter than 83% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity34

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity66

Established project with proven stability

 Bus Factor1

Top contributor holds 96.4% 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 ~86 days

Recently: every ~162 days

Total

9

Last Release

4261d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/a4feb5a2e8a07f71eb19ee7fa194924d7cad91c2bee8a93aed1ce9323881eda0?d=identicon)[brodkinca](/maintainers/brodkinca)

---

Top Contributors

[![brodkin](https://avatars.githubusercontent.com/u/236564?v=4)](https://github.com/brodkin "brodkin (160 commits)")[![ricick](https://avatars.githubusercontent.com/u/137188?v=4)](https://github.com/ricick "ricick (2 commits)")[![alexbilbie](https://avatars.githubusercontent.com/u/77991?v=4)](https://github.com/alexbilbie "alexbilbie (1 commits)")[![chadhutchins](https://avatars.githubusercontent.com/u/47898?v=4)](https://github.com/chadhutchins "chadhutchins (1 commits)")[![pwhelan](https://avatars.githubusercontent.com/u/601645?v=4)](https://github.com/pwhelan "pwhelan (1 commits)")[![rhbecker](https://avatars.githubusercontent.com/u/224732?v=4)](https://github.com/rhbecker "rhbecker (1 commits)")

---

Tags

curlwrapper

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[rmccue/requests

A HTTP library written in PHP, for human beings.

3.6k34.5M258](/packages/rmccue-requests)[php-http/curl-client

PSR-18 and HTTPlug Async client with cURL

48347.0M384](/packages/php-http-curl-client)[smi2/phpclickhouse

PHP ClickHouse Client

84310.1M71](/packages/smi2-phpclickhouse)[stefangabos/zebra_curl

A high performance solution for making multiple HTTP requests concurrently, asynchronously from your PHP projects using cURL

21971.3k2](/packages/stefangabos-zebra-curl)[minicli/curly

Simple Curl Client

14262.4k5](/packages/minicli-curly)

PHPackages © 2026

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