PHPackages                             uestla/curly - 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. uestla/curly

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

uestla/curly
============

Simple PHP cURL wrapper class

3.0.1(9y ago)032MITPHPPHP &gt;= 5.6.0

Since Jul 2Pushed 9y ago1 watchersCompare

[ Source](https://github.com/uestla/curly)[ Packagist](https://packagist.org/packages/uestla/curly)[ Docs](http://github.com/uestla/curly)[ RSS](/packages/uestla-curly/feed)WikiDiscussions master Synced 4w ago

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

Curly\\Curl
===========

[](#curlycurl)

Single-class PHP cURL wrapper

Installation
------------

[](#installation)

```
$ composer require uestla/curly

```

Basic usage
-----------

[](#basic-usage)

```
use Curly\Curl;

// initialize first - set temp directory for cookie files
Curl::initialize(__DIR__ . '/temp');

// GET request
$html = Curl::get($url);

// GET request with no auto-redirect
$html = Curl::get($url, FALSE);

// POST request with values
$html = Curl::post($url, [
  'foo' => 'bar',
  'hello' => 'world',
  'file' => new CURLFile($path),
]);

// HEAD request
$status = Curl::ping($url);

// last response info
$info = Curl::getInfo();

// or single info field
$httpCode = Curl::getInfo('http_code');
```

### Settings

[](#settings)

- `Curly\Curl::$userAgent` - string with UserAgent header sent with each request (default: [here](https://github.com/uestla/curly/blob/master/src/Curly/Curl.php#L20-L21))
- `Curly\Curl::$maxRedirects` - max. number of redirects when auto-redirect is `TRUE` (default: 6)

### Cookies

[](#cookies)

`Curly` offers basic cookie-reading support:

```
// all cookies across all domains
$cookies = Curl::getCookies();

// cookies for specific domain
$cookies = Curl::getCookies('http://example.com');

// cookies for specific domain and path
$cookies = Curl::getCookies('http://example.com/foo/bar');
```

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity65

Established project with proven stability

 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 ~20 days

Recently: every ~51 days

Total

11

Last Release

3443d ago

Major Versions

1.0.7 → 2.0.02016-07-31

2.0.0 → 3.0.02016-12-22

### Community

Maintainers

![](https://www.gravatar.com/avatar/4d3a756def83a4d23274f1b7c7854f6eda71834901be89fc668f85f170f97653?d=identicon)[uestla](/maintainers/uestla)

---

Top Contributors

[![uestla](https://avatars.githubusercontent.com/u/373888?v=4)](https://github.com/uestla "uestla (26 commits)")

---

Tags

cookiescurlphpphpcurlwrapper

### Embed Badge

![Health badge](/badges/uestla-curly/health.svg)

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

###  Alternatives

[stefangabos/zebra_curl

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

21472.0k2](/packages/stefangabos-zebra-curl)[ismaeltoe/osms

PHP library wrapper of the Orange SMS API.

4540.5k](/packages/ismaeltoe-osms)

PHPackages © 2026

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