PHPackages                             clarence/restful - 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. clarence/restful

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

clarence/restful
================

A RESTful client, especially for async requests.

v1.0.8(8y ago)4192MITPHPPHP &gt;=5.5

Since Feb 27Pushed 8y ago1 watchersCompare

[ Source](https://github.com/Clarence-pan/restful)[ Packagist](https://packagist.org/packages/clarence/restful)[ RSS](/packages/clarence-restful/feed)WikiDiscussions master Synced today

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

Restful
=======

[](#restful)

[![Build status](https://camo.githubusercontent.com/39f873118b4799aa10e033fec54b24206094c5d829a121f904c3cf66c6379b0d/68747470733a2f2f6170692e7472617669732d63692e6f72672f436c6172656e63652d70616e2f7265737466756c2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/Clarence-pan/restful)

A RESTful client, especially for async requests.

Install
=======

[](#install)

From Composer
-------------

[](#from-composer)

```
composer require clarence/restful
```

From github
-----------

[](#from-github)

```
git clone git@github.com:Clarence-pan/restful.git
```

Usage
=====

[](#usage)

Talk is cheap. Show the code:

```
use Clarence\Restful\Curl\CurlRestClient;

// Do a GET request
$data = ['test' => 'test', 'hello' => 'world!'];

$jsonResponse = $restClient->get('http://localhost:8888/server/echo-globals.php', $data)->json();
// then use the $jsonRespose....
```

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity64

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

Recently: every ~137 days

Total

10

Last Release

3044d ago

Major Versions

v0.0.1 → v1.0.02016-02-27

PHP version history (2 changes)v0.0.1PHP ^5.5

v1.0.3PHP &gt;=5.5

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/8750132?v=4)[牧毅](/maintainers/Clarence-pan)[@Clarence-pan](https://github.com/Clarence-pan)

---

Top Contributors

[![Clarence-pan](https://avatars.githubusercontent.com/u/8750132?v=4)](https://github.com/Clarence-pan "Clarence-pan (12 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/clarence-restful/health.svg)

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

###  Alternatives

[php-http/cache-plugin

PSR-6 Cache plugin for HTTPlug

25126.1M81](/packages/php-http-cache-plugin)[illuminate/http

The Illuminate Http package.

11937.2M6.6k](/packages/illuminate-http)[rdkafka/rdkafka

A PHP extension for Kafka

2.2k20.0k1](/packages/rdkafka-rdkafka)[httpsoft/http-message

Strict and fast implementation of PSR-7 and PSR-17

87965.9k113](/packages/httpsoft-http-message)[mezzio/mezzio-router

Router subcomponent for Mezzio

265.4M85](/packages/mezzio-mezzio-router)[serpapi/google-search-results-php

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

69127.2k](/packages/serpapi-google-search-results-php)

PHPackages © 2026

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