PHPackages                             rocketman/json-api-common - 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. rocketman/json-api-common

ActiveLibrary[API Development](/categories/api)

rocketman/json-api-common
=========================

Basic php implementation (shared structures for client and server) of the json api specification (jsonapi.org)

v3.2.2+rocketman.2(11mo ago)01.2k↓33.3%1MITPHPPHP &gt;=7.2CI passing

Since Jun 8Pushed 11mo agoCompare

[ Source](https://github.com/RocketMan/JSON-API-Common)[ Packagist](https://packagist.org/packages/rocketman/json-api-common)[ RSS](/packages/rocketman-json-api-common/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (3)Versions (27)Used By (1)

JSON API Common
===============

[](#json-api-common)

[![Build Status](https://github.com/RocketMan/JSON-API-Common/actions/workflows/main.yml/badge.svg?branch=master)](https://github.com/RocketMan/JSON-API-Common)

[![license](https://camo.githubusercontent.com/00d85599ff2c5ca9c01ac735ff4b13858d28e7bfeb42f6d82f79fd7f4979d1c8/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f526f636b65744d616e2f4a534f4e2d4150492d436f6d6d6f6e)](https://github.com/RocketMan/JSON-API-Common/blob/master/LICENSE)[![latest version](https://camo.githubusercontent.com/b628a463a3b294ae331c4f6459aafcce0108ba4541cf8c5d877cf80ee689dfa2/68747470733a2f2f62616467656e2e6e65742f6769746875622f72656c656173652f526f636b65744d616e2f4a534f4e2d4150492d436f6d6d6f6e3f6c6162656c3d6c6174657374)](https://github.com/RocketMan/JSON-API-Common/releases)

This is a fork of the upstream [`enm/json-api-common`](https://github.com/eosnewmedia/JSON-API-Common)with post-release fixes.

It contains code shared by the [JSON-API-Server](https://github.com/RocketMan/JSON-API-Server) and JSON-API-Client projects.

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

[](#installation)

Generally, you will establish a composer dependency on json-api-server or json-api-client as appropriate, and they will in turn pull in this library. If you wish to include this library explicitly, you can do so like this:

```
composer require rocketman/json-api-common
```

---

Documentation
-------------

[](#documentation)

1. [JsonApiTrait](docs/01-trait.md)
2. [Resources](docs/02-resources.md)
    1. [Relationships](docs/02-resources.md#relationships)
3. [Attributes and Meta-Informations](docs/03-collections.md)
4. [Links](docs/04-links.md)
5. [Documents](docs/05-documents.md)
6. [Exceptions and Errors](docs/06-errors.md)
7. [Request and Response](docs/07-requests.md)

---

Changelog
---------

[](#changelog)

See the [Changelog](CHANGELOG.md).

###  Health Score

41

—

FairBetter than 89% of packages

Maintenance52

Moderate activity, may be stable

Popularity19

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity68

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

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

Recently: every ~605 days

Total

22

Last Release

336d ago

Major Versions

1.0.0 → 2.0.02017-07-14

2.4.0 → 3.0.02018-09-25

2.5.0 → 3.1.02018-10-18

1.0.1 → v3.2.2+rocketman.22025-06-17

PHP version history (2 changes)1.0.0PHP &gt;=7.0

3.0.0PHP &gt;=7.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/9c636c2f209424e277350e1ab2f3144fafdbde29c13b74a203978f47a7dcc75c?d=identicon)[RocketMan](/maintainers/RocketMan)

---

Top Contributors

[![pmarien](https://avatars.githubusercontent.com/u/8394874?v=4)](https://github.com/pmarien "pmarien (11 commits)")[![RocketMan](https://avatars.githubusercontent.com/u/6860356?v=4)](https://github.com/RocketMan "RocketMan (11 commits)")[![bogomolov-dev](https://avatars.githubusercontent.com/u/127733?v=4)](https://github.com/bogomolov-dev "bogomolov-dev (5 commits)")[![nandorstanko](https://avatars.githubusercontent.com/u/4552672?v=4)](https://github.com/nandorstanko "nandorstanko (3 commits)")[![OndraM](https://avatars.githubusercontent.com/u/793041?v=4)](https://github.com/OndraM "OndraM (2 commits)")[![legendik](https://avatars.githubusercontent.com/u/2327491?v=4)](https://github.com/legendik "legendik (2 commits)")[![neilmcgibbon](https://avatars.githubusercontent.com/u/3208382?v=4)](https://github.com/neilmcgibbon "neilmcgibbon (1 commits)")[![richgerdes](https://avatars.githubusercontent.com/u/1626100?v=4)](https://github.com/richgerdes "richgerdes (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[algolia/algoliasearch-client-php

API powering the features of Algolia.

69433.0M114](/packages/algolia-algoliasearch-client-php)[swisnl/json-api-client

A PHP package for mapping remote JSON:API resources to Eloquent like models and collections.

211473.2k12](/packages/swisnl-json-api-client)[php-heroku-client/php-heroku-client

A PHP client for the Heroku Platform API

24404.8k4](/packages/php-heroku-client-php-heroku-client)[yoti/yoti-php-sdk

Yoti SDK for quickly integrating your PHP backend with Yoti

27539.9k1](/packages/yoti-yoti-php-sdk)[trycourier/courier

Courier PHP SDK

16643.9k](/packages/trycourier-courier)[commercetools/commercetools-sdk

The official PHP SDK for the commercetools Composable Commerce APIs

19281.5k](/packages/commercetools-commercetools-sdk)

PHPackages © 2026

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