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. [HTTP &amp; Networking](/categories/http)
4. /
5. olenagi/curl-wrap

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

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 today

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

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

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

3492d ago

Major Versions

1.0.0 → 2.0.02016-12-05

### Community

Maintainers

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

---

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)
```

###  Alternatives

[php-http/cache-plugin

PSR-6 Cache plugin for HTTPlug

25025.5M80](/packages/php-http-cache-plugin)[illuminate/http

The Illuminate Http package.

11937.2M6.6k](/packages/illuminate-http)[rdkafka/rdkafka

A PHP extension for Kafka

2.2k20.0k1](/packages/rdkafka-rdkafka)[httpsoft/http-message

Strict and fast implementation of PSR-7 and PSR-17

87930.4k113](/packages/httpsoft-http-message)[mezzio/mezzio-router

Router subcomponent for Mezzio

265.3M84](/packages/mezzio-mezzio-router)[serpapi/google-search-results-php

Get Google, Bing, Baidu, Ebay, Yahoo, Yandex, Home depot, Naver, Apple, Duckduckgo, Youtube search results via SerpApi.com

69122.6k](/packages/serpapi-google-search-results-php)

PHPackages © 2026

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