PHPackages                             json-api/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. [API Development](/categories/api)
4. /
5. json-api/client

ActiveLibrary[API Development](/categories/api)

json-api/client
===============

Simple JSON RESTful api client library

093[1 PRs](https://github.com/stas-dovgodko/restful_api_client/pulls)PHP

Since May 28Pushed 3y agoCompare

[ Source](https://github.com/stas-dovgodko/restful_api_client)[ Packagist](https://packagist.org/packages/json-api/client)[ RSS](/packages/json-api-client/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (2)Used By (0)

Example:

```
    require_once 'vendor/autoload.php';

    class JSONPlaceholder extends \JsonAPI\Model {
        use \JsonAPI\Resource;

        protected $endpoint = 'https://jsonplaceholder.typicode.com/todos';

        public static function FromArray(array $data)
        {
            $object = new self;

            // @todo Schema validation here
            $object->userId = $data['userId'];
            $object->id = $data['id'];
            $object->title = $data['title'];

            return $object;
        }

        /**
         * Get object by ID
         *
         * @param $id
         * @return JSONPlaceholder
         * @throws \JsonAPI\Client\Exception
         */
        public function get($id)
        {
            return $this->request($id, 'GET', [], self::class);
        }

        public function getId() : string
        {
            return $this->id;
        }

        public function getUserId() : string
        {
            return $this->userId;
        }

        public function getTitle() : string
        {
            return $this->title;
        }
    }

    $test = new JSONPlaceholder;
    $object = $test->setAdapter(new \JsonAPI\Client\Adapter\Curl())->get(1);

    echo $object->getId().' - '.$object->getTitle(); // will echo '1 - delectus aut autem'
```

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity35

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/1e0c57045036713a9b1d7b2700e27c009c68d351e1c439ff9d52315a0457abf6?d=identicon)[stas-dovgodko](/maintainers/stas-dovgodko)

---

Top Contributors

[![stas-dovgodko](https://avatars.githubusercontent.com/u/10487711?v=4)](https://github.com/stas-dovgodko "stas-dovgodko (4 commits)")

---

Tags

phprest-apirestfull-api

### Embed Badge

![Health badge](/badges/json-api-client/health.svg)

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

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M480](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

263103.1M454](/packages/google-gax)

PHPackages © 2026

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