PHPackages                             lartisanlogiciel/curly - 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. lartisanlogiciel/curly

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

lartisanlogiciel/curly
======================

Object oriented curl usage

1.0.0(2mo ago)01MITPHPPHP &gt;=7.4

Since Feb 18Pushed 2mo agoCompare

[ Source](https://github.com/lartisanlogiciel/curly)[ Packagist](https://packagist.org/packages/lartisanlogiciel/curly)[ Docs](https://github.com/lartisanlogiciel/curly)[ RSS](/packages/lartisanlogiciel-curly/feed)WikiDiscussions main Synced 1mo ago

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

Curly
=====

[](#curly)

Utilisez curl sous forme d'objet

Installation
------------

[](#installation)

```
composer require lartisanlogiciel/curly
```

Utilisation
-----------

[](#utilisation)

Requête GET

```
$curlResponse = (new CurlBuilder())->get('https://my-awesome-api.virt');
echo $curlResponse->httpStatusCode . ': ' . $curlResponse->payload;
```

Requête POST avec un bearer token

```
$curlResponse = (new CurlBuilder())
    ->bearer('my-bearer-token')
    ->addBodyParam('Hello', 'World')
    ->post('https://my-awesome-api.virt')
;

echo $curlResponse->httpStatusCode . ': ' . $curlResponse->payload;
```

Requête PATCH avec le format JSON

```
$curlResponse = (new CurlBuilder())
    ->setJsonBody(['Hello' => 'World']) # This automatically set 'Content-Type: application/json' header
    ->patch('https://my-awesome-api.virt')
;

try {
    echo $curlResponse->httpStatusCode . ': ' . print_r($curlResponse->getJsonDecodedPayload(), true);
} catch (JsonException $e) {
    # Exception thrown when the payload is not JSON
    error_log($e);
}
```

Questions/Retours
-----------------

[](#questionsretours)

Envoyez un email à:

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance82

Actively maintained with recent releases

Popularity1

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity34

Early-stage or recently created project

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

89d ago

### Community

Maintainers

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

---

Tags

curlobjectbuildercurly

### Embed Badge

![Health badge](/badges/lartisanlogiciel-curly/health.svg)

```
[![Health](https://phpackages.com/badges/lartisanlogiciel-curly/health.svg)](https://phpackages.com/packages/lartisanlogiciel-curly)
```

###  Alternatives

[rmccue/requests

A HTTP library written in PHP, for human beings.

3.6k34.5M258](/packages/rmccue-requests)[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)[curl/curl

cURL class for PHP

32814.9M195](/packages/curl-curl)[msankhala/parsehub-php

Php wrapper classes for Parsehub REST api.

1312.4k](/packages/msankhala-parsehub-php)

PHPackages © 2026

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