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

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

willwashburn/curl
=================

1-1 class mapping of the cURL library so it can be mocked / stubbed

v1.0(10y ago)079.0k—9.8%1MITPHPPHP &gt;=5.4.0

Since Mar 4Pushed 10y ago1 watchersCompare

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

READMEChangelog (1)DependenciesVersions (2)Used By (1)

Curl
====

[](#curl)

1-1 class mapping of the cURL library so it can be mocked / stubbed

Sometimes, you just want to use cURL and not some abstracted class like guzzle. This is a simple wrapper for cURL so you can do that and still write meaningful tests.

Usage
=====

[](#usage)

```
class SomeClassThatUsesCurl {

   protected $curl;

   public function __construct(WillWashburn\Curl $curl) {

       $this->curl = $curl;

   }

   public function someMethodThatMakesARequest() {

       // Use curl like normal but also be able to test!
       $ch = $this->curl->curl_init($url);
       $this->curl->curl_setopt($ch, CURLOPT_HEADER, true);

   }

}
```

Installation
============

[](#installation)

Use composer

`composer require willwashburn/curl`

Alternatively, add `"willwashburn/curl": "1.0"` to your composer.json

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity30

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity58

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

Unknown

Total

1

Last Release

3728d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/957608?v=4)[Will Washburn](/maintainers/willwashburn)[@willwashburn](https://github.com/willwashburn)

---

Top Contributors

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

---

Tags

curlcurl-libraryhttpcurlwrapper1-1

### Embed Badge

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

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

###  Alternatives

[rmccue/requests

A HTTP library written in PHP, for human beings.

3.6k34.5M258](/packages/rmccue-requests)[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)[stefangabos/zebra_curl

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

21971.3k2](/packages/stefangabos-zebra-curl)[minicli/curly

Simple Curl Client

14262.4k5](/packages/minicli-curly)[bca/curl

cURL wrapper for PHP applications.

1144.0k](/packages/bca-curl)

PHPackages © 2026

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