PHPackages                             innmind/rest-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. innmind/rest-client

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

innmind/rest-client
===================

Library to consume REST APIs

8.1.0(5y ago)222.6k3MITPHPPHP ~7.4|~8.0

Since Sep 27Pushed 5y ago1 watchersCompare

[ Source](https://github.com/Innmind/rest-client)[ Packagist](https://packagist.org/packages/innmind/rest-client)[ Docs](http://github.com/Innmind/rest-client)[ RSS](/packages/innmind-rest-client/feed)WikiDiscussions develop Synced 1mo ago

READMEChangelogDependencies (12)Versions (24)Used By (3)

RestClient
==========

[](#restclient)

[![Build Status](https://github.com/Innmind/rest-client/workflows/CI/badge.svg?branch=master)](https://github.com/Innmind/rest-client/actions?query=workflow%3ACI)[![codecov](https://camo.githubusercontent.com/24c4f565069737b804c589ab7267751a111dee07c7cbc9369b7202e0d1c5d019/68747470733a2f2f636f6465636f762e696f2f67682f496e6e6d696e642f726573742d636c69656e742f6272616e63682f646576656c6f702f67726170682f62616467652e737667)](https://codecov.io/gh/Innmind/rest-client)[![Type Coverage](https://camo.githubusercontent.com/8b281edc7e0cd92997b57b573029c0327c4cebee707accedb42263e473e8b583/68747470733a2f2f73686570686572642e6465762f6769746875622f496e6e6d696e642f726573742d636c69656e742f636f7665726167652e737667)](https://shepherd.dev/github/Innmind/rest-client)

This library is intended to consume APIs built with the [`RestServer`](https://github.com/Innmind/rest-server).

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

[](#installation)

```
composer require innmind/rest-client
```

Usage
-----

[](#usage)

```
use Innmind\OperatingSystem\Factory;
use Innmind\Url\Path;
use Innmind\UrlResolver\UrlResolver;
use function Innmind\Rest\Client\bootstrap;

$os = Factory::build();
$client = bootstrap(
    $os->remote()->http(),
    new UrlResolver,
    $os->filesystem()->mount(Path::of('/somewhere/to/cache/data')),
);

$client
    ->server('http://example.com/')
    ->capabilities()
    ->names();
```

This example would return all the resource available through the api of `http://example.com/`.

Then you can access the following method on any server: `all`, `read`, `create`, `update` and `remove`. Check the [interface](src/Server.php) to understand how to use these methods.

Structure
---------

[](#structure)

[![](graph.svg)](graph.svg)

###  Health Score

38

—

LowBetter than 85% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity26

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity78

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

Recently: every ~192 days

Total

22

Last Release

1920d ago

Major Versions

3.0.0 → 4.0.02017-02-14

4.0.3 → 5.0.02017-03-19

5.0.0 → 6.0.02017-10-06

6.2.0 → 7.0.02019-01-06

7.1.1 → 8.0.02020-03-23

PHP version history (6 changes)1.0.0PHP &gt;=5.5

3.0.0PHP ~7.0

4.0.0PHP ~7.1

7.0.0PHP ~7.2

8.0.0PHP ~7.4

8.1.0PHP ~7.4|~8.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/851425?v=4)[Baptiste Langlade](/maintainers/Baptouuuu)[@Baptouuuu](https://github.com/Baptouuuu)

---

Top Contributors

[![Baptouuuu](https://avatars.githubusercontent.com/u/851425?v=4)](https://github.com/Baptouuuu "Baptouuuu (208 commits)")

---

Tags

apiclientrest

###  Code Quality

TestsPHPUnit

Static AnalysisPsalm

Type Coverage Yes

### Embed Badge

![Health badge](/badges/innmind-rest-client/health.svg)

```
[![Health](https://phpackages.com/badges/innmind-rest-client/health.svg)](https://phpackages.com/packages/innmind-rest-client)
```

###  Alternatives

[api-platform/symfony

Symfony API Platform integration

323.2M67](/packages/api-platform-symfony)[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)[api-platform/laravel

API Platform support for Laravel

59126.4k6](/packages/api-platform-laravel)[artesaos/laravel-linkedin

Linkedin API integration for Laravel and Lumen 5

5666.5k](/packages/artesaos-laravel-linkedin)[ismaeltoe/osms

PHP library wrapper of the Orange SMS API.

4540.0k](/packages/ismaeltoe-osms)[romanpitak/dotmailer-api-v2-client

Client library for the dotMailer v2 (REST) API.

21101.0k2](/packages/romanpitak-dotmailer-api-v2-client)

PHPackages © 2026

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