PHPackages                             free-elephants/json-api-toolkit - 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. free-elephants/json-api-toolkit

ActiveLibrary[API Development](/categories/api)

free-elephants/json-api-toolkit
===============================

Tools for building specification first json:api / swagger integrated APIs

0.2.0(1y ago)37.0k1[1 issues](https://github.com/FreeElephants/json-api-php-toolkit/issues)BSD-2-ClausePHPCI passing

Since Mar 24Pushed 1y ago1 watchersCompare

[ Source](https://github.com/FreeElephants/json-api-php-toolkit)[ Packagist](https://packagist.org/packages/free-elephants/json-api-toolkit)[ RSS](/packages/free-elephants-json-api-toolkit/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (20)Versions (39)Used By (0)

Json Api Toolkit
================

[](#json-api-toolkit)

[![Build Status](https://github.com/FreeElephants/json-api-php-toolkit/workflows/CI/badge.svg)](https://github.com/FreeElephants/json-api-php-toolkit/actions)[![codecov](https://camo.githubusercontent.com/881cfb9ca32ed6ece50f0674088361fe74a1021909d94f2cec1fcad2e9abd3d3/68747470733a2f2f636f6465636f762e696f2f67682f46726565456c657068616e74732f6a736f6e2d6170692d7068702d746f6f6c6b69742f6272616e63682f6d61737465722f67726170682f62616467652e737667)](https://codecov.io/gh/FreeElephants/json-api-php-toolkit)[![Installs](https://camo.githubusercontent.com/9f214ef32eb575e8f649e32bf3ba2823e15ca4f77f34f71de07441256ddc63fb/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f667265652d656c657068616e74732f6a736f6e2d6170692d746f6f6c6b69742e737667)](https://packagist.org/packages/free-elephants/json-api-toolkit)[![Releases](https://camo.githubusercontent.com/0519bf8bcc0d23c71179ed4fc979765c43e521cd8b3aed75ec41049e1dd9ae8e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f667265652d656c657068616e74732f6a736f6e2d6170692d746f6f6c6b69742e737667)](https://github.com/FreeElephants/json-api-php-toolkit/releases)

Features:
---------

[](#features)

- Build FastRoute Dispatcher by defined in OAS3 `operationsIds` values
- Serialize Doctrine entities with Neomerx schemas (resolve issue [neomerx/json-api#40](https://github.com/neomerx/json-api/issues/40))
- Generate PHP Data Transfer Objects by OAS3 `reponseBody` and `requestBody` schema reference compliance with json:api
- Validate incoming Psr Requests with swagger specification and user defined rules, and build Psr Response with json:api errors
- Map application models to Psr Response compliance with json:api structure

Usage
-----

[](#usage)

### Install

[](#install)

`composer require free-elephants/json-api-toolkit`

### Documentation

[](#documentation)

Available in [/docs](/docs).

#### Index:

[](#index)

1. [Routing](/docs/routing.md)
2. [Serialize doctrine entities](/docs/doctrine.md)
3. [Validation](/docs/validation.md)

Development
-----------

[](#development)

All dev env is dockerized. Your can use make receipts and `bin/` scripts without locally installed php, composer.

For run tests with different php version change `PHP_VERSION` value in .env and rebuild image with `make build`.

See also:
---------

[](#see-also)

Package for map PSR-7 http messages with Json Api structure to PHP DTO:

###  Health Score

37

—

LowBetter than 83% of packages

Maintenance38

Infrequent updates — may be unmaintained

Popularity27

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 97.8% 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 ~91 days

Recently: every ~28 days

Total

21

Last Release

430d ago

Major Versions

0.0.14 → 1.x-dev2024-11-23

### Community

Maintainers

![](https://www.gravatar.com/avatar/5b764f6cd1eb52054cf0e07297309c60e37382542268822b3bd5edd97729d056?d=identicon)[samizdam](/maintainers/samizdam)

---

Top Contributors

[![samizdam](https://avatars.githubusercontent.com/u/1556299?v=4)](https://github.com/samizdam "samizdam (87 commits)")[![developerstudservis](https://avatars.githubusercontent.com/u/161607449?v=4)](https://github.com/developerstudservis "developerstudservis (2 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/free-elephants-json-api-toolkit/health.svg)

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

###  Alternatives

[sylius/sylius

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

8.4k5.6M651](/packages/sylius-sylius)[cakephp/cakephp

The CakePHP framework

8.8k18.5M1.6k](/packages/cakephp-cakephp)[thecodingmachine/graphqlite

Write your GraphQL queries in simple to write controllers (using webonyx/graphql-php).

5723.1M30](/packages/thecodingmachine-graphqlite)[neos/flow

Flow Application Framework

862.0M451](/packages/neos-flow)[neos/flow-development-collection

Flow packages in a joined repository for pull requests.

144179.3k3](/packages/neos-flow-development-collection)[windwalker/framework

The next generation PHP framework.

25639.1k1](/packages/windwalker-framework)

PHPackages © 2026

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