PHPackages                             genxoft/curl - 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. genxoft/curl

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

genxoft/curl
============

Simple php cURL extension with RESTful support

v1.0-stable(7y ago)0144MITPHPPHP &gt;=5.4.0

Since Oct 26Pushed 7y agoCompare

[ Source](https://github.com/genxoft/curl)[ Packagist](https://packagist.org/packages/genxoft/curl)[ RSS](/packages/genxoft-curl/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (3)Dependencies (1)Versions (7)Used By (0)

php-curl wrapper
================

[](#php-curl-wrapper)

Simple curl wrapper with REST methods support:

- GET
- HEAD
- POST
- PUT
- PATCH
- DELETE

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

[](#requirements)

- PHP 5.4+
- curl php extension

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

[](#installation)

The preferred way to install this wrapper is through [composer](http://getcomposer.org/download/).

```
php composer.phar require genxoft/curl "*"
```

or

```
composer require genxoft/curl "*"
```

Quick usage
-----------

[](#quick-usage)

### Quick get request

[](#quick-get-request)

```
require_once __DIR__ . '/vendor/autoload.php';
use genxoft\curl\Curl;

$result = Curl::QuickGet("http://example.com", ["text_param" => "text_value"]);
```

You can see also Curl::QuickPost and Curl::QuickJson quick methods

Basic usage
-----------

[](#basic-usage)

### Post request with Json data

[](#post-request-with-json-data)

Performing post request with Json data and query params

```
require_once __DIR__ . '/vendor/autoload.php';
use genxoft\curl\Curl;
use genxoft\curl\Request;

$request = new Request("http://example.com");
$request->addGetParam("action", "save")
    ->setJsonBody([
        "name" => "John Smith",
        "age" => 23
    ]);
$curl = new Curl($request);
$response = $curl->post();

if ($response === null) {
    echo $curl->getLastError();
} else {
    if ($response->isSuccess()) {
        echo "Data saved";
    } else {
        echo "HTTP Error: ".$response->getStatusMessage();
    }
}
```

Donate
------

[](#donate)

[![](https://camo.githubusercontent.com/f72973a690601ae9170128b07e34a821c2010aac81e1d0e2104e23cbb171e7e0/68747470733a2f2f7777772e70617970616c6f626a656374732e636f6d2f656e5f55532f52552f692f62746e2f62746e5f646f6e61746543435f4c472e676966)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=2PURUX2SHUD9E)

LICENSE
-------

[](#license)

This curl wrapper is released under the [MIT license](https://github.com/walkor/workerman/blob/master/MIT-LICENSE.txt).

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity60

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

Total

5

Last Release

2739d ago

Major Versions

v0.4-RC → v1.0-stable2018-10-31

### Community

Maintainers

![](https://www.gravatar.com/avatar/3b4eeb884e0cc2a853171c070ab0908389c3549cd3d31da04f8680503f7087c6?d=identicon)[genxoft](/maintainers/genxoft)

---

Top Contributors

[![genxoft](https://avatars.githubusercontent.com/u/26364719?v=4)](https://github.com/genxoft "genxoft (15 commits)")

---

Tags

jsonrestcurlphp-curlrestfull

###  Code Quality

TestsCodeception

### Embed Badge

![Health badge](/badges/genxoft-curl/health.svg)

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

###  Alternatives

[tcdent/php-restclient

A generic REST API client for PHP

3542.9M29](/packages/tcdent-php-restclient)[serpapi/google-search-results-php

Get Google, Bing, Baidu, Ebay, Yahoo, Yandex, Home depot, Naver, Apple, Duckduckgo, Youtube search results via SerpApi.com

69114.3k](/packages/serpapi-google-search-results-php)[genxoft/yii2-oas3

Yii2 Open Api Swagger 3 integration

18346.3k1](/packages/genxoft-yii2-oas3)[ismaeltoe/osms

PHP library wrapper of the Orange SMS API.

4540.0k](/packages/ismaeltoe-osms)

PHPackages © 2026

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