PHPackages                             wrossmann/restclient - 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. wrossmann/restclient

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

wrossmann/restclient
====================

REST Client

1.0.3(10y ago)041PHP

Since Nov 30Pushed 10y ago1 watchersCompare

[ Source](https://github.com/wrossmann/restclient)[ Packagist](https://packagist.org/packages/wrossmann/restclient)[ RSS](/packages/wrossmann-restclient/feed)WikiDiscussions master Synced 3w ago

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

REST Client Wrapper
===================

[](#rest-client-wrapper)

Provides an implementation-agnostic client and abstracts away the details of interacting with a REST API, translates requests like:

- `GET http://example.com/resource/{id}/action` to `$rest->resource->$id->action()`
- `GET http://example.com/resource/{id}/action?param=foo` to `$rest->resource->$id->action(['param'=>'foo'])`
- `POST http://example.com/resource` with data `param=foo` to `$rest->resource->$id->action(['param'=>'foo'], 'post')`
- and so on for `DELETE and PUT` as well.

Resource instantiation is chained and cached for speed and memory efficiency, and requests are executed by the single Guzzle instance in the root `REST\Client` object.

Authentication
--------------

[](#authentication)

Easily supports REST endpoints that rely on authentication tokens in the headers via the `basicHeaders()` function which can be modified to set token values, as well as common required `Accept:` and `Content-Type` headers, eg:

```
public function basicHeaders() {
	return [
		'Accept'	=> 'application/json',
		'Content-Type'	=> 'application/json',
		'X-Auth-Token'	=> isset($this->authToken) ? $this->authToken : '';
	];
}

```

**Note:** Currently the client does not have a baked-in way to deal with REST services that require request signing, but you should be able to override `Client::guzzle()` to accomplish this.

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity63

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

Unknown

Total

1

Last Release

3864d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/4967671?v=4)[Wade Rossmann](/maintainers/wrossmann)[@wrossmann](https://github.com/wrossmann)

---

Top Contributors

[![wrossmann](https://avatars.githubusercontent.com/u/4967671?v=4)](https://github.com/wrossmann "wrossmann (3 commits)")

### Embed Badge

![Health badge](/badges/wrossmann-restclient/health.svg)

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

###  Alternatives

[laravel/framework

The Laravel Framework.

34.8k532.1M19.4k](/packages/laravel-framework)[craftcms/cms

Craft CMS

3.6k3.6M2.9k](/packages/craftcms-cms)[tempest/framework

The PHP framework that gets out of your way.

2.2k31.1k12](/packages/tempest-framework)[pantheon-systems/terminus

A command line interface for Pantheon

3391.5M17](/packages/pantheon-systems-terminus)[open-dxp/opendxp

Content &amp; Product Management Framework (CMS/PIM)

9317.2k55](/packages/open-dxp-opendxp)[huaweicloud/huaweicloud-sdk-php

Huawei Cloud SDK for PHP

1830.2k2](/packages/huaweicloud-huaweicloud-sdk-php)

PHPackages © 2026

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