PHPackages                             vis/curl\_client\_l5 - 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. vis/curl\_client\_l5

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

vis/curl\_client\_l5
====================

PHP cUrl extension wrapper

1.0.3(9y ago)02.4k—7.7%3MITPHP

Since Mar 27Pushed 8y ago1 watchersCompare

[ Source](https://github.com/KHlushchenko/curl_client_l5)[ Packagist](https://packagist.org/packages/vis/curl_client_l5)[ RSS](/packages/vis-curl-client-l5/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (5)Used By (3)

PHP cUrl extension wrapper.

Execute

```
composer require "vis/curl_client_l5":"1.*"
```

Usage

```
$curl = New Vis/CurlClient/CurlClient();

//example of all possible methods
$curl->setRequestCredentials($login, $password, $authType) //$authType is optional
     ->setRequestHeader($option, $value) //$option accepts array ["option" => "value", "option1" => "value1"]
     ->setRequestCookie($option, $value) //$option accepts array ["option" => "value", "option1" => "value1"]
     ->setRequestReferrer($referrer)
     ->setRequestUserAgent($agent)
     ->setRequestMethod($method) // 'POST', 'GET', 'PUT', 'PATCH', 'DELETE'
     ->setRequestUrl($url,$urlParams) //$urlParam is optional if you need to add params to query string
     ->setRequestPayload($payload, $encoding) // $encoding is optional. Accepts either 'json' or 'query' and encodes payload to given format, otherwise doesn't encode.
     ->setCurlOpt($option, $value) //if you need to set any other additional curl options
```

To execute curl request

```
$curl->doCurlRequest() //returns self
```

After that you can get request response with following methods

```
$curl->getCurlResponse();  //returns array ['http_code', 'response_header', 'response_body']

$curl->getCurlResponseHttpCode(); //returns http_code
$curl->getCurlResponseHeader(); //returns response_header
$curl->getCurlResponseBody(); //returns response_body
```

Also you can use helper method isSuccessful to check if response http code was in range from 200 to 300

```
$curl->isSuccessful();
```

If you wish to close curl resource earlier (this method is also executed upon destruction of object)

```
 $curl->doCloseCurl();
```

###  Health Score

33

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity66

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

Total

4

Last Release

3343d ago

### Community

Maintainers

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

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/vis-curl-client-l5/health.svg)

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

###  Alternatives

[php-http/cache-plugin

PSR-6 Cache plugin for HTTPlug

25126.1M82](/packages/php-http-cache-plugin)[illuminate/http

The Illuminate Http package.

11937.9M6.9k](/packages/illuminate-http)[rdkafka/rdkafka

A PHP extension for Kafka

2.2k24.3k1](/packages/rdkafka-rdkafka)[httpsoft/http-message

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

87965.9k114](/packages/httpsoft-http-message)[mezzio/mezzio-router

Router subcomponent for Mezzio

265.4M90](/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

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

PHPackages © 2026

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