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

ActiveLibrary[API Development](/categories/api)

dogado/json-api-common
======================

Common interfaces and classes which represent the JSON:API protocol in order to build a client or server application.

v3.0.1(4y ago)18.5k[1 issues](https://github.com/dogado-group/json-api-common/issues)[1 PRs](https://github.com/dogado-group/json-api-common/pulls)2MITPHPPHP ^8.0

Since May 21Pushed 3y ago4 watchersCompare

[ Source](https://github.com/dogado-group/json-api-common)[ Packagist](https://packagist.org/packages/dogado/json-api-common)[ Docs](https://github.com/dogado-group/json-api-common)[ RSS](/packages/dogado-json-api-common/feed)WikiDiscussions main Synced yesterday

READMEChangelog (8)Dependencies (7)Versions (10)Used By (2)

Common interfaces and classes which represent the JSON:API protocol
===================================================================

[](#common-interfaces-and-classes-which-represent-the-jsonapi-protocol)

[![phpunit](https://github.com/dogado-group/json-api-common/actions/workflows/phpunit.yml/badge.svg)](https://github.com/dogado-group/json-api-common/actions/workflows/phpunit.yml)[![Coverage Status](https://camo.githubusercontent.com/4e8797a4e01b6f6619622df834aac9cd4d5599408d341dc858c4f1c88932ff21/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f646f6761646f2d67726f75702f6a736f6e2d6170692d636f6d6d6f6e2f62616467652e7376673f6272616e63683d6d61696e)](https://coveralls.io/github/dogado-group/json-api-common?branch=main)[![Total Downloads](https://camo.githubusercontent.com/a9ade337e2e9f31714b55582f137023bcbf97295817b3974c671b6c331af051d/68747470733a2f2f706f7365722e707567782e6f72672f646f6761646f2f6a736f6e2d6170692d636f6d6d6f6e2f646f776e6c6f616473)](https://packagist.org/packages/dogado/json-api-common)[![Latest Stable Version](https://camo.githubusercontent.com/673f134fac357b705d6da4d359e12a5cfcbcaa85d76a511597f0bc23efa7bc16/68747470733a2f2f706f7365722e707567782e6f72672f646f6761646f2f6a736f6e2d6170692d636f6d6d6f6e2f762f737461626c65)](https://packagist.org/packages/dogado/json-api-common)[![Latest Unstable Version](https://camo.githubusercontent.com/73d85c202510b2b4946960fc4d2537ac5df384243d99af2dd5bec569dd20b421/68747470733a2f2f706f7365722e707567782e6f72672f646f6761646f2f6a736f6e2d6170692d636f6d6d6f6e2f762f756e737461626c652e706e67)](https://packagist.org/packages/dogado/json-api-common)[![License](https://camo.githubusercontent.com/d8ac7ed8d3f8b6c25c669bcf4387e5539847a33654e04daf15d44969f67efb65/68747470733a2f2f706f7365722e707567782e6f72672f646f6761646f2f6a736f6e2d6170692d636f6d6d6f6e2f6c6963656e7365)](https://packagist.org/packages/dogado/json-api-common)

This library contains php classes and interfaces shared between [`dogado/json-api-server`](https://github.com/dogado-group/json-api-server) and [`dogado/json-api-client`](https://github.com/dogado-group/json-api-client).

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

[](#installation)

```
composer require dogado/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)
8. [Model conversion](docs/08-models.md)

Credits
-------

[](#credits)

- [Chris Döhring](https://github.com/chris-doehring)
- [Philipp Marien](https://github.com/pmarien)
- [eosnewmedia team](https://github.com/eosnewmedia)

This package contains code taken from [enm/json-api-common](https://github.com/eosnewmedia/JSON-API-Common).

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE) for more information.

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 96.2% 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 ~57 days

Recently: every ~88 days

Total

8

Last Release

1466d ago

Major Versions

v1.2.0 → v2.0.02021-07-11

v2.1.0 → v3.0.02021-10-01

PHP version history (2 changes)v1.0.0PHP ^7.4 || ^8.0

v1.1.0PHP ^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/adc3192118eb415f2a8eaa5b256f28562f784844a1024c4d34ea933ae2845261?d=identicon)[darthsoup](/maintainers/darthsoup)

![](https://www.gravatar.com/avatar/8f25bd8f4a5f0287916cd551d6d29410527d9fa8a70d1a9f6705ac8d4e4b1a04?d=identicon)[chris-doehring](/maintainers/chris-doehring)

---

Top Contributors

[![chris-doehring](https://avatars.githubusercontent.com/u/6341536?v=4)](https://github.com/chris-doehring "chris-doehring (25 commits)")[![stixxx2k](https://avatars.githubusercontent.com/u/17484476?v=4)](https://github.com/stixxx2k "stixxx2k (1 commits)")

---

Tags

clientdogadojsonjson-apiphpphp74php8serverJSON-APIdogado

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

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

```
[![Health](https://phpackages.com/badges/dogado-json-api-common/health.svg)](https://phpackages.com/packages/dogado-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.9M733](/packages/sylius-sylius)[algolia/algoliasearch-client-php

API powering the features of Algolia.

69735.1M158](/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)
