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

ActiveLibrary[API Development](/categories/api)

myparcelcom/json-api
====================

MyParcel.com shared library with JSON API related exceptions, interfaces, traits and utility classes.

v4.0.4(1w ago)079.3k↑15.9%1PHPPHP &gt;=8.2CI passing

Since Sep 25Pushed 2d ago4 watchersCompare

[ Source](https://github.com/MyParcelCOM/json-api)[ Packagist](https://packagist.org/packages/myparcelcom/json-api)[ Docs](https://www.myparcel.com)[ RSS](/packages/myparcelcom-json-api/feed)WikiDiscussions master Synced yesterday

READMEChangelog (10)Dependencies (14)Versions (110)Used By (1)

MyParcel.com JSON API
=====================

[](#myparcelcom-json-api)

[![GitHub Actions](https://camo.githubusercontent.com/e30a5c3f04eac012eeb450dc28de50876c7ab10e5d2ed4374045f22ae7aebbae/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f4d7950617263656c434f4d2f6a736f6e2d6170692f63692e796d6c)](https://github.com/MyParcelCOM/json-api/actions)[![Packagist](https://camo.githubusercontent.com/f086c9e5b3a1c7c1edba394d2f529d4a639bddffa30037470b190a49cb0f64b7/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f4d7950617263656c434f4d2f6a736f6e2d6170692e737667)](https://packagist.org/packages/myparcelcom/json-api)

Shared library with JSON API related exceptions, interfaces, traits and utility classes.

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

[](#installation)

The library uses Docker to run php and composer. To install Docker, follow the steps in the [documentation](https://docs.myparcel.com/development.html#docker).

### Setup

[](#setup)

To set up the project, run:

```
./mp.sh setup
```

Commands
--------

[](#commands)

The following commands are available for development:

`./mp.sh composer ` - Run composer inside the container.

`./mp.sh php ` - Run any command on the php container.

`./mp.sh test ` - Run the PHPUnit tests.

A few composer scripts have been defined, you can call these using the following commands:

`./mp.sh composer check-style` - Check if the code is PSR-2 compliant.

`./mp.sh composer fix-style` - Automatically fix non-PSR-2 code (not all errors can be automatically fixed).

License
-------

[](#license)

All software by MyParcel.com is licensed under the [MyParcel.com general terms and conditions](https://www.myparcel.com/legal).

###  Health Score

64

—

FairBetter than 99% of packages

Maintenance99

Actively maintained with recent releases

Popularity29

Limited adoption so far

Community21

Small or concentrated contributor base

Maturity92

Battle-tested with a long release history

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

Total

106

Last Release

11d ago

Major Versions

v0.9.3 → v1.0.02020-04-17

v1.2.4 → v2.0.02023-02-23

v2.0.2 → v3.0.02023-11-10

v3.3.4 → v4.0.02026-02-06

PHP version history (4 changes)v0.1.0PHP &gt;=7.1

v1.1.3PHP &gt;=7.3

v2.0.0PHP &gt;=8.0

v3.0.0PHP &gt;=8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/3841efa190ba5131014f8855131e3d38ef5ccd57c51000966348108e63c83612?d=identicon)[myparcelcom](/maintainers/myparcelcom)

---

Top Contributors

[![M4tini](https://avatars.githubusercontent.com/u/4649537?v=4)](https://github.com/M4tini "M4tini (176 commits)")[![nessy](https://avatars.githubusercontent.com/u/881554?v=4)](https://github.com/nessy "nessy (49 commits)")[![yoan-myparcel](https://avatars.githubusercontent.com/u/46448148?v=4)](https://github.com/yoan-myparcel "yoan-myparcel (43 commits)")[![NickVries](https://avatars.githubusercontent.com/u/32866117?v=4)](https://github.com/NickVries "NickVries (42 commits)")[![SAMDevelopment](https://avatars.githubusercontent.com/u/4527294?v=4)](https://github.com/SAMDevelopment "SAMDevelopment (32 commits)")[![Shodske](https://avatars.githubusercontent.com/u/11209396?v=4)](https://github.com/Shodske "Shodske (31 commits)")[![zwaans](https://avatars.githubusercontent.com/u/83594488?v=4)](https://github.com/zwaans "zwaans (10 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (10 commits)")[![yoerriwalstra](https://avatars.githubusercontent.com/u/48599583?v=4)](https://github.com/yoerriwalstra "yoerriwalstra (9 commits)")[![dennis-koster](https://avatars.githubusercontent.com/u/8804219?v=4)](https://github.com/dennis-koster "dennis-koster (8 commits)")[![fidel404](https://avatars.githubusercontent.com/u/6574634?v=4)](https://github.com/fidel404 "fidel404 (3 commits)")[![daniel-myparcel](https://avatars.githubusercontent.com/u/193501397?v=4)](https://github.com/daniel-myparcel "daniel-myparcel (1 commits)")

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

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

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

###  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)[statamic/cms

The Statamic CMS Core Package

4.8k3.6M985](/packages/statamic-cms)[darkaonline/l5-swagger

OpenApi or Swagger integration to Laravel

3.0k37.6M134](/packages/darkaonline-l5-swagger)[knuckleswtf/scribe

Generate API documentation for humans from your Laravel codebase.✍

2.3k14.2M63](/packages/knuckleswtf-scribe)[laravel/nightwatch

The official Laravel Nightwatch package.

36210.1M36](/packages/laravel-nightwatch)[google/gax

Google API Core for PHP

267116.3M567](/packages/google-gax)

PHPackages © 2026

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