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.3k↓33.3%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 1mo ago

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

32

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

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

3297d 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

[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)[pusher/pusher-php-server

Library for interacting with the Pusher REST API

1.5k94.8M293](/packages/pusher-pusher-php-server)[react/http

Event-driven, streaming HTTP client and server implementation for ReactPHP

78026.4M414](/packages/react-http)[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)

PHPackages © 2026

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