PHPackages                             myparcelnl/sdk - 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. myparcelnl/sdk

ActiveLibrary[API Development](/categories/api)

myparcelnl/sdk
==============

This package is designed to send and receive data from MyParcel by means of an API.

10.7.5(3mo ago)32483.2k↓11.6%34[7 PRs](https://github.com/myparcelnl/sdk/pulls)5MITPHPPHP ^7.4 || ^8.0CI passing

Since Aug 22Pushed 2mo ago10 watchersCompare

[ Source](https://github.com/myparcelnl/sdk)[ Packagist](https://packagist.org/packages/myparcelnl/sdk)[ Docs](https://myparcelnl.github.io/sdk)[ RSS](/packages/myparcelnl-sdk/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (6)Versions (277)Used By (5)

MyParcel PHP SDK
================

[](#myparcel-php-sdk)

[![Latest Stable Version](https://camo.githubusercontent.com/4b8ab8572789c0677f3d3c8d5ae4ac9e43aeabe93f4fa21e38a2ba68f2395b94/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6d7970617263656c6e6c2f73646b3f6c6162656c3d4c617465737425323076657273696f6e)](https://github.com/myparcelnl/sdk/releases)[![Total Downloads](https://camo.githubusercontent.com/5af3f54d81ff2682d684674634ba2237764041e1ca03875d09a5097020547fc8/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646d2f6d7970617263656c6e6c2f73646b)](https://packagist.org/packages/myparcelnl/sdk)[![Slack support](https://camo.githubusercontent.com/2e03356b0e56baf2420b30da2978e160e0ca7291f57658a1534b2b5b1e415fbb/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f536c61636b2d436861742532307769746825323075732d77686974653f6c6f676f3d736c61636b266c6162656c436f6c6f723d346131353462)](https://join.slack.com/t/myparcel-dev/shared_invite/enQtNDkyNTg3NzA1MjM4LTM0Y2IzNmZlY2NkOWFlNTIyODY5YjFmNGQyYzZjYmQzMzliNDBjYzBkOGMwYzA0ZDYzNmM1NzAzNDY1ZjEzOTM)[![Coverage Status](https://camo.githubusercontent.com/22fb508c472fdb60a527684fc0347b7801c3ea3be82f00ee63070e73a2a7edb2/68747470733a2f2f696d672e736869656c64732e696f2f636f6465636f762f632f6769746875622f6d7970617263656c6e6c2f73646b3f6c6f676f3d636f6465636f76)](https://codecov.io/gh/myparcelnl/sdk)

Requirements
------------

[](#requirements)

- PHP &gt;=7.4
- Composer

See [installation](https://developer.myparcel.nl/documentation/50.php-sdk.html#installation) for further instructions.

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

[](#documentation)

For examples, guides and in-depth information, visit the [PHP SDK documentation](https://developer.myparcel.nl/documentation/50.php-sdk.html) on the [MyParcel Developer Portal](https://developer.myparcel.nl).

Support
-------

[](#support)

For questions and support please contact us via  or chat with our developers directly on [Slack](https://join.slack.com/t/myparcel-dev/shared_invite/enQtNDkyNTg3NzA1MjM4LTM0Y2IzNmZlY2NkOWFlNTIyODY5YjFmNGQyYzZjYmQzMzliNDBjYzBkOGMwYzA0ZDYzNmM1NzAzNDY1ZjEzOTM).

Testing
-------

[](#testing)

### Test Framework

[](#test-framework)

This SDK uses **PHPUnit** with **Mockery** for mocking HTTP requests. All tests are completely isolated and do not make real API calls.

#### Running Tests

[](#running-tests)

```
# Run all tests
./vendor/bin/phpunit

# Run specific test suite
./vendor/bin/phpunit --testsuite Unit

# Run with test descriptions
./vendor/bin/phpunit --testdox
```

#### Writing Tests

[](#writing-tests)

All HTTP requests are automatically mocked using Mockery. When writing tests:

1. Use `$this->mockCurl()` to get a Mockery mock instance
2. Set up expectations for API calls with `shouldReceive()`
3. Define mock responses that match real API responses
4. All existing tests serve as examples of proper mocking patterns

For detailed examples, see `test/Mock/EXAMPLE_UPDATE_TEST.md`.

Contribute
----------

[](#contribute)

1. Check for open issues or open a new issue to start a discussion around a bug or feature
2. Fork the repository and branch off from the `main` branch
3. Write one or more tests for the new feature or that expose the bug
    - **Important**: Use Mockery for mocking HTTP requests (see Testing section above)
    - Follow existing test patterns in the codebase
4. Make code changes to implement the feature or fix the bug
5. Ensure all tests pass: `./vendor/bin/phpunit`
6. Submit a pull request to `main` to get your changes merged and published

###  Health Score

68

—

FairBetter than 100% of packages

Maintenance84

Actively maintained with recent releases

Popularity50

Moderate usage in the ecosystem

Community39

Small or concentrated contributor base

Maturity88

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 59.9% 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 ~15 days

Recently: every ~0 days

Total

234

Last Release

56d ago

Major Versions

7.25.1 → 8.0.02025-03-25

8.1.1 → 9.0.02025-05-06

9.0.2 → 10.0.02025-07-15

v7.x-dev → 10.3.22025-11-11

10.7.5 → 11.0.0-beta.12026-03-24

PHP version history (7 changes)0.2.2PHP ~5.6.5

v0.2.7PHP &gt;=5.6.5 &lt;7.1

v1.1.10PHP &gt;=5.6.5 &lt;7.2

v1.3.10PHP &gt;=5.6.5

v2.1.0PHP &gt;=7.1.0

v1.0.2PHP &gt;=7.2.0

8.0.0PHP ^7.4 || ^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/9eb71044dadb53942f7ec05073242fec3115293e3468fa02e82cc92629532a4c?d=identicon)[RichardPerdaan](/maintainers/RichardPerdaan)

![](https://www.gravatar.com/avatar/7074417d5d5a74a106ed32e4f1026daa662c0456c3cb55fa0b6183e04446d5df?d=identicon)[EdieLemoine](/maintainers/EdieLemoine)

![](https://www.gravatar.com/avatar/a690fc9d6a40aca385607a7fb72d53bd240dd6662c514270463ca6d42a76e94a?d=identicon)[Joeri van Veen](/maintainers/Joeri%20van%20Veen)

---

Top Contributors

[![RichardPerdaan](https://avatars.githubusercontent.com/u/11389731?v=4)](https://github.com/RichardPerdaan "RichardPerdaan (659 commits)")[![EdieLemoine](https://avatars.githubusercontent.com/u/3886637?v=4)](https://github.com/EdieLemoine "EdieLemoine (175 commits)")[![myparcel-bot[bot]](https://avatars.githubusercontent.com/in/281272?v=4)](https://github.com/myparcel-bot[bot] "myparcel-bot[bot] (75 commits)")[![joerivanveen](https://avatars.githubusercontent.com/u/49525608?v=4)](https://github.com/joerivanveen "joerivanveen (48 commits)")[![Mark-Ernst](https://avatars.githubusercontent.com/u/33826576?v=4)](https://github.com/Mark-Ernst "Mark-Ernst (27 commits)")[![adem-demir](https://avatars.githubusercontent.com/u/37372250?v=4)](https://github.com/adem-demir "adem-demir (14 commits)")[![semantic-release-bot](https://avatars.githubusercontent.com/u/32174276?v=4)](https://github.com/semantic-release-bot "semantic-release-bot (14 commits)")[![GravendeelJochem](https://avatars.githubusercontent.com/u/119667571?v=4)](https://github.com/GravendeelJochem "GravendeelJochem (13 commits)")[![scrutinizer-auto-fixer](https://avatars.githubusercontent.com/u/6253494?v=4)](https://github.com/scrutinizer-auto-fixer "scrutinizer-auto-fixer (12 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (9 commits)")[![wthijmen](https://avatars.githubusercontent.com/u/106662400?v=4)](https://github.com/wthijmen "wthijmen (7 commits)")[![robindelaater](https://avatars.githubusercontent.com/u/47381559?v=4)](https://github.com/robindelaater "robindelaater (7 commits)")[![FreekVR](https://avatars.githubusercontent.com/u/417416?v=4)](https://github.com/FreekVR "FreekVR (6 commits)")[![NabDevs](https://avatars.githubusercontent.com/u/20712349?v=4)](https://github.com/NabDevs "NabDevs (6 commits)")[![Cornelis21](https://avatars.githubusercontent.com/u/30620801?v=4)](https://github.com/Cornelis21 "Cornelis21 (5 commits)")[![FlorianSDV](https://avatars.githubusercontent.com/u/93703843?v=4)](https://github.com/FlorianSDV "FlorianSDV (3 commits)")[![JBtje](https://avatars.githubusercontent.com/u/1798984?v=4)](https://github.com/JBtje "JBtje (3 commits)")[![LeonidasJP](https://avatars.githubusercontent.com/u/11160833?v=4)](https://github.com/LeonidasJP "LeonidasJP (3 commits)")[![RV7PR](https://avatars.githubusercontent.com/u/17615589?v=4)](https://github.com/RV7PR "RV7PR (3 commits)")[![robvanderlee](https://avatars.githubusercontent.com/u/124156158?v=4)](https://github.com/robvanderlee "robvanderlee (2 commits)")

---

Tags

flespakketmyparcelphppostnlsdksendmyparcelpostnlmyparcel

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/myparcelnl-sdk/health.svg)

```
[![Health](https://phpackages.com/badges/myparcelnl-sdk/health.svg)](https://phpackages.com/packages/myparcelnl-sdk)
```

###  Alternatives

[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)[horstoeko/zugferd

A library for creating and reading european electronic invoices

4174.3M18](/packages/horstoeko-zugferd)[google/common-protos

Google API Common Protos for PHP

173103.7M50](/packages/google-common-protos)[firstred/postnl-api-php

PostNL REST API PHP Bindings

27610.2k1](/packages/firstred-postnl-api-php)[hubspot/api-client

Hubspot API client

23914.2M16](/packages/hubspot-api-client)

PHPackages © 2026

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