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

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

dcai/curl
=========

A friendly curl wrapper for PHP.

0.2.2(7y ago)308.8k↓50%30GPL-3.0PHP

Since Dec 4Pushed 7y ago4 watchersCompare

[ Source](https://github.com/dcai/curl)[ Packagist](https://packagist.org/packages/dcai/curl)[ RSS](/packages/dcai-curl/feed)WikiDiscussions master Synced 1mo ago

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

curl wrapper class for PHP
==========================

[](#curl-wrapper-class-for-php)

A PHP wrapper class to simplify [PHP cURL Library](http://php.net/manual/en/book.curl.php).

How to use
----------

[](#how-to-use)

Following code shows how to use this class

```
$http = new dcai\curl;
// enable cache
$http = new dcai\curl(array('cache'=>true));
// enable cookie
$http = new dcai\curl(array('cookie'=>true));
// enable proxy
$http = new dcai\curl(array('proxy'=>true));

// HTTP GET
$response = $http->get('http://example.com');
// HTTP POST
$response = $http->post('http://example.com/', array('q'=>'words', 'name'=>'moodle'));
// POST RAW
$xml = 'perform';
$response = $http->post('http://example.com/', $xml);
// HTTP PUT
$response = $http->put('http://example.com/', array('file'=>'/var/www/test.txt');
```

[![Build Status](https://camo.githubusercontent.com/00bde29005ece51062ae7d3374ef48e01d27c108acf44352a72e01e2ca79edd1/68747470733a2f2f7472617669732d63692e6f72672f646361692f6375726c2e706e67)](https://travis-ci.org/dcai/curl)

###  Health Score

35

—

LowBetter than 80% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity36

Limited adoption so far

Community17

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 94.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 ~277 days

Total

3

Last Release

2898d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/015a326b29eb29cb76ef8ef5803354294377ea74127d575e3d2084ad7ba48bb4?d=identicon)[dcai](/maintainers/dcai)

---

Top Contributors

[![dcai](https://avatars.githubusercontent.com/u/7065?v=4)](https://github.com/dcai "dcai (34 commits)")[![mouneyrac](https://avatars.githubusercontent.com/u/354908?v=4)](https://github.com/mouneyrac "mouneyrac (1 commits)")[![t-schroeder](https://avatars.githubusercontent.com/u/24255259?v=4)](https://github.com/t-schroeder "t-schroeder (1 commits)")

---

Tags

curlphpphp-library

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[friendsofsymfony/rest-bundle

This Bundle provides various tools to rapidly develop RESTful API's with Symfony

2.8k73.3M319](/packages/friendsofsymfony-rest-bundle)[php-http/discovery

Finds and installs PSR-7, PSR-17, PSR-18 and HTTPlug implementations

1.3k309.5M1.2k](/packages/php-http-discovery)[pusher/pusher-php-server

Library for interacting with the Pusher REST API

1.5k94.8M293](/packages/pusher-pusher-php-server)[react/http

Event-driven, streaming HTTP client and server implementation for ReactPHP

78026.4M414](/packages/react-http)[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)

PHPackages © 2026

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