PHPackages                             myparcelcom/carrier-specification - 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/carrier-specification

ActiveLibrary[API Development](/categories/api)

myparcelcom/carrier-specification
=================================

MyParcel.com carrier API specification.

v2.5.6(3mo ago)322.2kJavaScriptCI passing

Since Sep 29Pushed 3mo ago3 watchersCompare

[ Source](https://github.com/MyParcelCOM/carrier-specification)[ Packagist](https://packagist.org/packages/myparcelcom/carrier-specification)[ Docs](https://carrier-specification.myparcel.com)[ RSS](/packages/myparcelcom-carrier-specification/feed)WikiDiscussions develop Synced 1mo ago

READMEChangelog (10)DependenciesVersions (126)Used By (0)

MyParcel.com carrier API specification
======================================

[](#myparcelcom-carrier-api-specification)

[![Packagist](https://camo.githubusercontent.com/1fc98c00c60fa5808bd3678674c556fb29090b05cd296f9df119acff292319e9/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6d7970617263656c636f6d2f636172726965722d73706563696669636174696f6e2e737667)](https://packagist.org/packages/myparcelcom/carrier-specification)[![OpenAPI Specification](https://camo.githubusercontent.com/8cf0a1734a5b3d953aef04153edcdc66c2de37f192ec28a8e6be511a5c448b88/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4f70656e4150492d332e312e302d627269676874677265656e2e737667)](https://github.com/OAI/OpenAPI-Specification)

The microservice API specification used by MyParcel.com located at . This specification adheres to the [OpenApi 3.1.0 specification](https://github.com/OAI/OpenAPI-Specification) and implements the [JSON API specification](https://jsonapi.org).

Content
-------

[](#content)

- [Installation](#installation)
- [Commands](#commands)
- [Conventions](#conventions)
- [License](#license)

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

[](#installation)

The repository provides Docker containers to validate and preview the spec before committing changes. This is also used when validating pull requests. To install Docker, follow the steps in the [documentation](https://docs.myparcel.com/development.html#docker).

To set up the project for development run:

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

Commands
--------

[](#commands)

`./mp.sh up` - Start the containers which will start a server to watch file changes and reload automatically.

`./mp.sh down` - Stop the containers.

`./mp.sh validate` - Validate the specification.

> **NOTE:** The validator only works when the containers are already running. Don't forget to start them.

Conventions
-----------

[](#conventions)

Conventions based on the [Swagger](https://swagger.io/specification) and [JSON Schema](https://json-schema.org) specs.

Our internal conventions are described below.

### PUT, POST, PATCH

[](#put-post-patch)

To avoid discussion, the use of the above HTTP methods is described below.

#### `PUT`

[](#put)

- Used to create or replace a resource.
- Always returns the same response on repeated requests.
- Needs the full resource for the request (including the id for the to be created or replaced resource).

#### `POST`

[](#post)

- Used to create a resource.
- Does not return the same response on repeated requests.
- Does not need the full resource for the request (often does not need the id for the to be created resource).

#### `PATCH`

[](#patch)

- Used to update an existing resource.
- Does not return the same response on repeated requests.
- Does not need the full resource for the request (you might only want to update a user's name for example).

### API versioning

[](#api-versioning)

The API versioning follows semantic versioning. The increment in version number is done manually and should be part of the pull request.

### Schema file naming

[](#schema-file-naming)

Definition file names follow PascalCasing. Where every first letter of a word (including the first word) is uppercase. For example, the definition for a country code would be found in:

```
specification/schemas/CountryCode.json

```

### Path file naming

[](#path-file-naming)

The files in `specification/paths` are named after their corresponding API endpoints. Where resources start with an uppercase letter and path variables with a lowercase letter. For example, the definition of the following route:

```
carriers/{carrier_id}/services

```

can be found in:

```
specification/paths/Carriers-carrier_id-Services.json

```

### Parameter file naming

[](#parameter-file-naming)

Parameter file names are prefixed with the corresponding parameter type. A path parameter for `carrier_id` would get the following file path:

```
specification/parameters/path-carrier_id.json

```

Unique parameters can just remain in the path file and do not need to be extracted to their own files.

License
-------

[](#license)

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

###  Health Score

55

—

FairBetter than 98% of packages

Maintenance81

Actively maintained with recent releases

Popularity28

Limited adoption so far

Community17

Small or concentrated contributor base

Maturity80

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

Recently: every ~45 days

Total

123

Last Release

103d ago

Major Versions

v0.13.5 → v1.0.02020-01-17

v1.14.0 → v2.0.02023-09-08

### 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 (219 commits)")[![yoan-myparcel](https://avatars.githubusercontent.com/u/46448148?v=4)](https://github.com/yoan-myparcel "yoan-myparcel (129 commits)")[![NickVries](https://avatars.githubusercontent.com/u/32866117?v=4)](https://github.com/NickVries "NickVries (59 commits)")[![zwaans](https://avatars.githubusercontent.com/u/83594488?v=4)](https://github.com/zwaans "zwaans (54 commits)")[![Shodske](https://avatars.githubusercontent.com/u/11209396?v=4)](https://github.com/Shodske "Shodske (17 commits)")[![SAMDevelopment](https://avatars.githubusercontent.com/u/4527294?v=4)](https://github.com/SAMDevelopment "SAMDevelopment (16 commits)")[![nessy](https://avatars.githubusercontent.com/u/881554?v=4)](https://github.com/nessy "nessy (13 commits)")[![yoerriwalstra](https://avatars.githubusercontent.com/u/48599583?v=4)](https://github.com/yoerriwalstra "yoerriwalstra (13 commits)")[![dennis-koster](https://avatars.githubusercontent.com/u/8804219?v=4)](https://github.com/dennis-koster "dennis-koster (5 commits)")[![MartinFinkenflugel](https://avatars.githubusercontent.com/u/1516225?v=4)](https://github.com/MartinFinkenflugel "MartinFinkenflugel (4 commits)")[![larsvlietman](https://avatars.githubusercontent.com/u/19223424?v=4)](https://github.com/larsvlietman "larsvlietman (1 commits)")[![daniel-myparcel](https://avatars.githubusercontent.com/u/193501397?v=4)](https://github.com/daniel-myparcel "daniel-myparcel (1 commits)")

### Embed Badge

![Health badge](/badges/myparcelcom-carrier-specification/health.svg)

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

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M480](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)[facebook/php-business-sdk

PHP SDK for Facebook Business

90821.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

74513.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

265103.1M454](/packages/google-gax)[google/common-protos

Google API Common Protos for PHP

173103.7M50](/packages/google-common-protos)

PHPackages © 2026

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