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

ActiveLibrary

olenagi/curl-wrap
=================

wrapper for curl extesion

2.1.0(9y ago)118MITPHPPHP &gt;=5.3.0

Since Nov 23Pushed 9y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (5)Used By (0)

CurlWrap
========

[](#curlwrap)

CurlWrap is wrapper of the PHP cURL extension;

### Instalation

[](#instalation)

To install CurlWrap, simply:

```
$ composer require olenagi/curl-wrap

```

### Requirements

[](#requirements)

PHP Curl Class works with PHP 5.3, 5.4, 5.5, 5.6, 7.0, 7.1, and HHVM.

### Examples

[](#examples)

```
require __DIR__ . '/vendor/autoload.php';

use olenagi\CurlWrap\Curl;

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

if ($response->isOk()) {
    echo "Request was successful!";
}
```

```
require __DIR__ . '/vendor/autoload.php';

use olenagi\CurlWrap\Curl;

$curl = new Curl("http://www.example.com");
$curl->setFile($filePath);
$response = $curl->post();

if ($response->isOk()) {
    echo "Request was successful!";
}
```

```
require __DIR__ . '/vendor/autoload.php';

use olenagi\CurlWrap\Curl;
use olenagi\CurlWrap\CurlMulti;

$curl = new Curl();
$curl->setOpt(CURLOPT_RETURNTRANSFER, true);
$curl->setFile($this->filePath);
$curl->setUrl("http://check.loc/index.php");

$curl2 = new Curl();
$curl2->setOpt(CURLOPT_RETURNTRANSFER, true);
$curl2->setFile($this->filePath);
$curl2->setUrl("http://check.loc/index2.php");

$curlMulti = new CurlMulti();
$curlMulti->add($curl->getResource());
$curlMulti->add($curl2->getResource());
$responses = $curlMulti->run();

foreach($responses as $response){
    if ($response->isOk()) {
        echo "Request was successful!";
    }
}
```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community5

Small or concentrated contributor base

Maturity61

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

Total

3

Last Release

3445d ago

Major Versions

1.0.0 → 2.0.02016-12-05

### Community

---

Top Contributors

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

### Embed Badge

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

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

PHPackages © 2026

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