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(8y ago)308.9k↓78.3%30GPL-3.0PHP

Since Dec 4Pushed 8y ago4 watchersCompare

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

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 77% 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

2944d 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

[php-http/cache-plugin

PSR-6 Cache plugin for HTTPlug

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

The Illuminate Http package.

11937.9M6.9k](/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.4M91](/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)
