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(4mo ago)01MITPHPPHP &gt;=7.4

Since Feb 18Pushed 4mo 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 today

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

30

—

LowBetter than 62% of packages

Maintenance75

Regular maintenance activity

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

135d 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.6k37.1M281](/packages/rmccue-requests)[moonshine/moonshine

Laravel administration panel

1.3k253.1k81](/packages/moonshine-moonshine)[laudis/neo4j-php-client

Neo4j-PHP-Client is the most advanced PHP Client for Neo4j

185702.8k43](/packages/laudis-neo4j-php-client)[hyperf/hyperf

A coroutine framework that focuses on hyperspeed and flexibility. Building microservice or middleware with ease.

6.9k3.3k2](/packages/hyperf-hyperf)[flow-php/flow

PHP ETL - Extract Transform Load - Data processing framework

85036.3k](/packages/flow-php-flow)[mimmi20/browser-detector

Library to detect Browsers and Devices

48157.5k5](/packages/mimmi20-browser-detector)

PHPackages © 2026

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