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

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

fifths/php-curl
===============

php-curl

06PHP

Since Jun 19Pushed 8y ago1 watchersCompare

[ Source](https://github.com/fifths/php-curl)[ Packagist](https://packagist.org/packages/fifths/php-curl)[ RSS](/packages/fifths-php-curl/feed)WikiDiscussions master Synced 4d ago

READMEChangelogDependenciesVersions (1)Used By (0)

PHP Curl Class
==============

[](#php-curl-class)

[![Build Status](https://camo.githubusercontent.com/abdff0d8a76251c9d7903514dda6a7567331154c81e8edad689d5f351378fb49/68747470733a2f2f7472617669732d63692e6f72672f6669667468732f7068702d6375726c2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/fifths/php-curl)[![Latest Stable Version](https://camo.githubusercontent.com/03a3ea8ecc3120456c60bcc3c35c5309e39a013b3bdb60f8ab24322e78e8df88/68747470733a2f2f706f7365722e707567782e6f72672f6669667468732f7068702d6375726c2f762f737461626c65)](https://packagist.org/packages/fifths/php-curl)[![Total Downloads](https://camo.githubusercontent.com/9de01ef3619e9ac847864a5b7dd7a80015db94d115efb1f81defa545aa5b7ef8/68747470733a2f2f706f7365722e707567782e6f72672f6669667468732f7068702d6375726c2f646f776e6c6f616473)](https://packagist.org/packages/fifths/php-curl)[![Latest Unstable Version](https://camo.githubusercontent.com/ef6df97f50876234a71143b5dcb82f7e94f0e57f6ce11db753477d0329232a5a/68747470733a2f2f706f7365722e707567782e6f72672f6669667468732f7068702d6375726c2f762f756e737461626c65)](https://packagist.org/packages/fifths/php-curl)[![License](https://camo.githubusercontent.com/4897a7e04c1dbc0b0c57ca316b2e946f47464c8eb030b06cedb122f64c67078b/68747470733a2f2f706f7365722e707567782e6f72672f6669667468732f7068702d6375726c2f6c6963656e7365)](https://packagist.org/packages/fifths/php-curl)

### Installation

[](#installation)

```
composer require fifths/php-curl

```

### Quick Start and Examples

[](#quick-start-and-examples)

#### HTTP GET

[](#http-get)

```
use \Curl\Curl;

$curl = new Curl();
$curl->get('http://www.example.com/');
```

```
$curl = new Curl();
$curl->get('http://www.example.com/search', array(
        'key' => 'keyword',
));
```

#### HTTP POST

[](#http-post)

```
$curl = new Curl();
$curl->post('http://www.example.com/login/', array(
    'username' => 'test',
    'password' => '123456',
));
```

#### HTTP PUT

[](#http-put)

```
$curl = new Curl();
$curl->put('http://www.example.com/put', array(
    'a' => 'a123456',
    'b' => 'b123456',
));
```

#### HTTP DELETE

[](#http-delete)

```
$curl = new Curl();
$curl->delete('http://www.example.com/delete', array(
    'id' => '123',
));
```

#### DOWNLOAD

[](#download)

```
$curl = new Curl();

$url = 'https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=1070902365,2619384777&fm=116&gp=0.jpg';
$filename = 'example.jpg';
print_r($curl->download($url, $filename));
```

#### OTHER

[](#other)

```
$curl = new Curl();
$curl->setBasicAuthentication('username', 'password');
$curl->setReferer('');
$curl->setUserAgent('');
$curl->setHeader('X-Requested-With', 'XMLHttpRequest');
$curl->setOpt(CURLOPT_SSL_VERIFYPEER, false);
$curl->setCookie('key', 'value');
$curl->get('http://www.example.com/');

if ($curl->error) {
    echo 'Error: ' . $curl->errorCode . ': ' . $curl->errorMessage;
}
else {
    echo $curl->response;
}

var_dump($curl->requestHeaders);
var_dump($curl->responseHeaders);
```

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/49f757c592dc7b6d8f02c741712d1a08d01875e4ada853bbec66012398e171e3?d=identicon)[fifths](/maintainers/fifths)

---

Top Contributors

[![maxlee123456](https://avatars.githubusercontent.com/u/63325897?v=4)](https://github.com/maxlee123456 "maxlee123456 (46 commits)")

---

Tags

curlphp

### Embed Badge

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

```
[![Health](https://phpackages.com/badges/fifths-php-curl/health.svg)](https://phpackages.com/packages/fifths-php-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)[nyholm/psr7

A fast PHP7 implementation of PSR-7

1.3k235.4M2.4k](/packages/nyholm-psr7)[pusher/pusher-php-server

Library for interacting with the Pusher REST API

1.5k94.8M293](/packages/pusher-pusher-php-server)[spatie/crawler

Crawl all internal links found on a website

2.8k16.3M52](/packages/spatie-crawler)[react/http

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

78126.4M414](/packages/react-http)

PHPackages © 2026

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