PHPackages                             pz/jsonapi-resource - 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. pz/jsonapi-resource

ActiveLibrary

pz/jsonapi-resource
===================

PHP 8.0 Library for parsing JSON:API resource in to data response.

1158PHP

Since Jan 8Pushed 5y ago1 watchersCompare

[ Source](https://github.com/R3VoLuT1OneR/jsonapi-resource)[ Packagist](https://packagist.org/packages/pz/jsonapi-resource)[ RSS](/packages/pz-jsonapi-resource/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

JSON:API Resource
-----------------

[](#jsonapi-resource)

PHP 8.0 Library for parsing JSON:API resource in to data response.

[![](https://camo.githubusercontent.com/fcd040a41e1bef9ed62e6cf2803112795994b13e67c2b5980cda19c6ae4e88ce/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f707a2f6a736f6e6170692d7265736f75726365)](https://packagist.org/packages/pz/jsonapi-resource)[![](https://camo.githubusercontent.com/742e8be8005b1fe76a64a5d8f5e6a5d4f63bf315e9a44a6d23e4e11c76b0555f/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048505374616e2d6c6576656c253230362d627269676874677265656e2e7376673f7374796c653d666c6174)](https://phpstan.org)[![](https://camo.githubusercontent.com/a52613f5a8d4b86eacbff61dbbc48cecd2c0dac431b1a9f4deae72d7793ba8ed/68747470733a2f2f736f6e6172636c6f75642e696f2f6170692f70726f6a6563745f6261646765732f6d6561737572653f70726f6a6563743d5233566f4c7554314f6e65525f6a736f6e6170692d7265736f75726365266d65747269633d616c6572745f737461747573)](https://sonarcloud.io/dashboard?id=R3VoLuT1OneR_jsonapi-resource)[![](https://camo.githubusercontent.com/0a78124190b721cfd8cbbcd36df158a491b0aa91faad4d39ea97c4132adb7824/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f5233566f4c7554314f6e65522f6a736f6e6170692d7265736f757263652f6261646765732f7175616c6974792d73636f72652e706e673f623d6d61696e)](https://scrutinizer-ci.com/g/R3VoLuT1OneR/jsonapi-resource/?branch=main)

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

[](#installation)

```
composer require pz/jsonapi-resource
```

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

[](#documentation)

- [Library Documentation](https://r3volut1oner.github.io/jsonapi-resource/)
- [JSON:API Documentation](https://jsonapi.org)

TODO
----

[](#todo)

List of ideas and tasks must be implemented in the future.

- Feat: Resource `meta` PHP attribute
- Feat: Hydration or deserialization for resource creation or update.
- Docs: Metadata guide
- Docs: Full API Reference
- Research: Possible performance improvements.

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

[](#development)

There are `Dockerfile` and `docker-compose` config needed for developing the library on same environment configurations. We suggest using docker-compose for the library development.

### Docker-compose local configurations

[](#docker-compose-local-configurations)

Please copy `docker-compose.override-example.yaml` to `docker-compose.override.yaml` and set proper user UID and desired build type.

First we need to build the docker image.

```
docker-compose build app
```

Lets install composer dependencies from the container.

```
docker-compose run app composer install
```

Testing
-------

[](#testing)

We are using [PestPHP](https://pestphp.com/) for unit testing the code, so please read about before test.

```
docker-compose run app pest
```

For syntax verification and checks we use [PHPSTan](https://github.com/phpstan/phpstan).

```
docker-compose run app phpstan
```

Contributing
------------

[](#contributing)

Fill free to create issues and send merge requests.

Before sending merge request please run `phpstan` and `pest`.

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity31

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/8d3fa6af699b70f877d632ed3dc64cb86da1d6fed4cb5b42d7c09b234fdc7b16?d=identicon)[R3VoLuT1OneR](/maintainers/R3VoLuT1OneR)

---

Top Contributors

[![R3VoLuT1OneR](https://avatars.githubusercontent.com/u/1111188?v=4)](https://github.com/R3VoLuT1OneR "R3VoLuT1OneR (1 commits)")

### Embed Badge

![Health badge](/badges/pz-jsonapi-resource/health.svg)

```
[![Health](https://phpackages.com/badges/pz-jsonapi-resource/health.svg)](https://phpackages.com/packages/pz-jsonapi-resource)
```

PHPackages © 2026

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