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

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

flashytime/curl
===============

A lightweight CURL wrapper for php

v1.0.0(7y ago)15MITPHPPHP &gt;=5.6

Since May 22Pushed 7y ago1 watchersCompare

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

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

Curl
====

[](#curl)

A lightweight CURL wrapper for php

### Installation

[](#installation)

```
composer require flashytime/curl
```

### Usage

[](#usage)

##### Instantiation

[](#instantiation)

```
$curl = new \Flashytime\Curl\Curl();
```

or

```
$curl = \Flashytime\Curl\Curl::init();
```

##### GET

[](#get)

```
$curl->url($url)->get();
```

or

```
//$params is a query parameter array, like ['id' => 1, 'uid' => 2]
$curl->url($url, $params)->get();
```

##### POST

[](#post)

```
//$data is a multi array
$curl->url($url)->set($data)->post();
```

##### PUT

[](#put)

```
$curl->url($url)->set($data)->put();
```

##### PATCH

[](#patch)

```
$curl->url($url)->set($data)->patch();
```

##### DELETE

[](#delete)

```
$curl->url($url)->delete();
```

##### DOWNLOAD

[](#download)

```
$curl->url($url)->download($file);
```

##### Set Options

[](#set-options)

```
//$option is the CURLOPT_XXX option
$curl->setOption($option, $value)
->url($url)
->set($data)
->post();
```

or

```
$curl->setOptions([$option1 => $value1, $option2 => $value2])
->url($url)
->set($data)
->post();
```

##### Result

[](#result)

```
if ($curl->error()) {
    var_dump($curl->message());
}
//the response data
$response = $curl->response();
$curl->close();
```

### License

[](#license)

MIT

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

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

2915d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/b97f252d8704b739173de45e442bc69ec205d5e43146e05ddd18efe9893193c6?d=identicon)[flashytime](/maintainers/flashytime)

---

Top Contributors

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

---

Tags

curl

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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