PHPackages                             faso-dev/simple-curl-client - 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. faso-dev/simple-curl-client

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

faso-dev/simple-curl-client
===========================

A small client that wrap curl for get and post request

v0.0.2(3y ago)3582MITPHPPHP &gt;=7.4.0

Since Jan 12Pushed 3y ago1 watchersCompare

[ Source](https://github.com/faso-dev/simple-curl-client)[ Packagist](https://packagist.org/packages/faso-dev/simple-curl-client)[ RSS](/packages/faso-dev-simple-curl-client/feed)WikiDiscussions main Synced 1mo ago

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

simple-curl-client
==================

[](#simple-curl-client)

Simple Curl Client is a simple PHP library to make HTTP requests using the cURL extension. This package is a very simple implementation of the basic get and post requests.

Requirements
------------

[](#requirements)

Before using this package, you need to have a some requirements installed:

- PHP 7.4 or higher
- ext-curl
- ext-json

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

[](#installation)

You can install the package using composer:

```
composer require faso-dev/simple-curl-client
```

Usage
-----

[](#usage)

When you have installed the package, you can use it in your code:

```
require __DIR__ . '/vendor/autoload.php';

use FasoDev\SimpleCurlClient\CurlClient;
use FasoDev\SimpleCurlClient\CurlClientBuilder;

$client = CurlClientBuilder::create()
	->defineProxySslVerifyPeer(false)
	->defineTimeOut(30)
	->defineConnectTimeOut(30)
	->defineUserAgent('Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36')
	->build()
;

$client->get('https://httpbin.org/get');
$client->get('https://httpbin.org/get', ['foo' => 'bar']);
$client->post('https://httpbin.org/post', ['foo' => 'bar']);
$client->post('https://httpbin.org/post', ['foo' => 'bar'], [
    'headers' => [
        'Content-Type' => 'application/json',
        'Accept' => 'application/json',
    ],
    CURLOPT_SSL_VERIFYPEER => true,
]);
```

The `get` method is used to make a GET request and have theses parameters:

- `$url` (string): The URL to make the request.
- `$queries` (array): The query parameters to add to the URL.
- `$options` (array): The options to add to the request. Note that we have a `headers` key in the `$options` array to add the headers to the request.

The `post` method is used to make a POST request and have theses parameters:

- `$url` (string): The URL to make the request.
- `$data` (array): The data to send to the URL.
- `$options` (array): The options to add to the request. Note that we have a `headers` key in the `$options` array to add the headers to the request.

Contributing
------------

[](#contributing)

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License
-------

[](#license)

[MIT](https://choosealicense.com/licenses/mit/)

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity37

Early-stage or recently created project

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

Total

2

Last Release

1194d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5f30387249ba011301439f329ef324e73d5269750c44c1265bf1a66496750028?d=identicon)[faso-dev](/maintainers/faso-dev)

---

Top Contributors

[![faso-dev](https://avatars.githubusercontent.com/u/40303326?v=4)](https://github.com/faso-dev "faso-dev (15 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/faso-dev-simple-curl-client/health.svg)

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

###  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)[nyholm/psr7

A fast PHP7 implementation of PSR-7

1.3k235.4M2.4k](/packages/nyholm-psr7)[pusher/pusher-php-server

Library for interacting with the Pusher REST API

1.5k94.8M293](/packages/pusher-pusher-php-server)[spatie/crawler

Crawl all internal links found on a website

2.8k16.3M52](/packages/spatie-crawler)[react/http

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

78126.4M414](/packages/react-http)

PHPackages © 2026

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