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(1y ago)01.5k—4%1MITPHPPHP &gt;=7.2CI passing

Since Jun 8Pushed 1y 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 2d 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

40

—

FairBetter than 86% of packages

Maintenance48

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

382d 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://avatars.githubusercontent.com/u/6860356?v=4)[Jim Mason](/maintainers/RocketMan)[@RocketMan](https://github.com/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

[aws/aws-sdk-php

AWS SDK for PHP - Use Amazon Web Services in your PHP project

6.3k543.5M2.6k](/packages/aws-aws-sdk-php)[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.5k5.9M738](/packages/sylius-sylius)[algolia/algoliasearch-client-php

API powering the features of Algolia.

69735.1M159](/packages/algolia-algoliasearch-client-php)[telnyx/telnyx-php

Official Telnyx PHP SDK — APIs for Voice, SMS, MMS, WhatsApp, Fax, SIP Trunking, Wireless IoT, Call Control, and more. Build global communications on Telnyx's private carrier-grade network.

35789.4k2](/packages/telnyx-telnyx-php)[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k656.1k38](/packages/neuron-core-neuron-ai)[tempest/framework

The PHP framework that gets out of your way.

2.2k34.4k15](/packages/tempest-framework)

PHPackages © 2026

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