PHPackages                             zhusaidong/curlite - 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. zhusaidong/curlite

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

zhusaidong/curlite
==================

a Light-weight php curl

1.1(7y ago)4441BSD-2-ClausePHPPHP &gt;=5.4.0

Since Jun 20Pushed 7y ago2 watchersCompare

[ Source](https://github.com/zhusaidong/curlite)[ Packagist](https://packagist.org/packages/zhusaidong/curlite)[ Docs](https://github.com/zhusaidong/curlite)[ RSS](/packages/zhusaidong-curlite/feed)WikiDiscussions master Synced yesterday

READMEChangelog (2)Dependencies (1)Versions (3)Used By (1)

CurLite
=======

[](#curlite)

About
-----

[](#about)

### a Light-weight php curl

[](#a-light-weight-php-curl)

Usage
-----

[](#usage)

```
composer require zhusaidong/curlite
```

Examples
--------

[](#examples)

```
require_once './vendor/autoload.php';

use zhusaidong\CurLite\Request,zhusaidong\CurLite\Curl;

$request = new Request('https://github.com/search');
$request->postFields = ['q'=>'php curl','type'=>''];
$request->referer = 'https://github.com/';
$cl = new Curl($request);
$response = $cl->getResponse();
//if curl successed, the `$response->error` will equal `FALSE`.
if($response->error === FALSE)
{
	echo $response->body;
}
else
{
	echo 'error:'.$response->error;
}
```

Available Properties
--------------------

[](#available-properties)

### Response Properties

[](#response-properties)

```
/**
* @var array $header response header
*/
$header = [];
/**
* @var string $body response body
*/
$body = '';
/**
* @var int $httpCode http code
*/
$httpCode = '';
/**
* @var string $cookie cookie
*/
$cookie = '';
/**
* @var array $serverInfo server info
*/
$serverInfo = [];
/**
* @var string|booean $error error msg, if curl successed, the $error is FALSE
*/
$error = '';
```

### Request Properties

[](#request-properties)

```
/**
* @const method get
*/
const METHOD_GET = 1;
/**
* @const method post
*/
const METHOD_POST = 2;

/**
* @var string $url request url
*/
$url = '';
/**
* @var int $method request method, default is GET
*/
$method = self::METHOD_GET;
/**
* @var array $postFields request post data
*/
$postFields = [];
/**
* @var array $header request header
*/
$header = [];
/**
* @var string $referer request referer
*/
$referer = '';
/**
* @var string $cookie cookie
*/
$cookie = '';
/**
* @var string $userAgent user-agent
*/
$userAgent = '';
/**
* @var boolean $isRandomIP is curl use random IP, default is FALSE
*/
$isRandomIP = FALSE;
/**
* @var string $caPath cafile path
*/
$caPath = '';
/**
* @var int $timeout request timeout
*/
$timeout = 3;
/**
 * @var int $followLocation follow the location,
 *      set it zero can intercept the redirect
 */
$followLocation = 1;
```

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity59

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.

###  Release Activity

Cadence

Every ~282 days

Total

2

Last Release

2649d ago

PHP version history (2 changes)1.0PHP &gt;=5.3.0

1.1PHP &gt;=5.4.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/3039961?v=4)[zhusaidong](/maintainers/zhusaidong)[@zhusaidong](https://github.com/zhusaidong)

---

Top Contributors

[![zhusaidong](https://avatars.githubusercontent.com/u/3039961?v=4)](https://github.com/zhusaidong "zhusaidong (21 commits)")

---

Tags

curllight-weightphpcurllight-weight

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/zhusaidong-curlite/health.svg)

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

###  Alternatives

[rmccue/requests

A HTTP library written in PHP, for human beings.

3.6k36.3M275](/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.1M80](/packages/smi2-phpclickhouse)

PHPackages © 2026

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