# myparcelnl/magento

> A Magento 2 module that creates MyParcel labels

`composer require myparcelnl/magento`

Canonical URL: https://packagento.com/myparcelnl/magento

## At a glance

- **Vendor**: myparcelnl (https://packagento.com/myparcelnl.md)
- **Latest version**: 5.8.0 — released 2026-06-23
- **Pricing**: Free
- **Package type**: Magento 2 module
- **Status**: active, accepting new buyers

## Installation

Packagento is licence-gated, so even free packages need a licence on a project before Composer can resolve them.

1. **Sign in or create an account** at https://packagento.com/customer/account/.

2. **Add the package to your account.** Open https://packagento.com/myparcelnl/magento and complete the free checkout. A licence is minted automatically.

3. **Create or pick a project, then activate the licence on it.**
   - Projects represent the Magento installs you deploy to. Manage them at https://packagento.com/projects/.
   - Activate the new licence on the project you'll deploy this package to. Activation is what generates the Composer credentials scoped to that project.

4. **Add the project credentials to your Magento codebase.**

   Grab the project's public + private key from https://packagento.com/projects/ (open the project, then its Credentials tab), and add them to `auth.json`:

   ```json
   {
     "http-basic": {
       "packagento.com": {
         "username": "ppk_live_...",
         "password": "psk_live_..."
       }
     }
   }
   ```

   Add the Packagento Composer repository to `composer.json`:

   ```json
   {
     "repositories": [
       { "type": "composer", "url": "https://packagento.com" }
     ]
   }
   ```

5. **Install and apply.**

   ```bash
   composer require myparcelnl/magento:*
   bin/magento setup:upgrade
   bin/magento setup:di:compile
   bin/magento cache:flush
   ```

## What it does

A Magento 2 module that creates MyParcel labels

## README

For the manual and more information, please refer to our [Magento Manual] on the [MyParcel Developer Portal].

### Important notice about third-party checkouts

We support the default Magento checkout and the Hyvä checkout.

To install our Hyvä compatibility module via composer:

`composer require hyva-themes/magento2-hyva-checkout-myparcelnl`

Enable module

`bin/magento setup:upgrade`

This ensures that our plugin (version 5 or higher) works seamlessly with the Hyvä checkout, there are no additional settings or requirements.

> :warning: Third-Party Checkouts Compatibility.

Other third party checkouts are not officially supported. Features such as Delivery Options or other functionalities might not work as expected.

We recommend testing the plugin’s functionality in your specific setup before fully implementing it.

[Magento Manual]: https://developer.myparcel.nl/nl/documentatie/13.magento2.html
[MyParcel Developer Portal]: https://developer.myparcel.nl

### Installation

Install using composer require.

```bash
composer require myparcelnl/magento
```

### For developers

Clone this repository in `app/code/MyParcelNL/Magento/` using git and run the following commands in the root directory of your Magento installation:

```bash
composer config repositories.myparcelnl/magento path app/code/MyParcelNL/Magento/
composer require myparcelnl/magento
```

This will install our SDK as a dependency.

You can install the SDK as a git repository as well:
Clone MyParcelNL/Sdk in `app/code/MyParcelNL/Sdk/` using git and run the following commands in the root directory of your Magento installation:

```bash
composer config repositories.myparcelnl/sdk path app/code/MyParcelNL/Sdk/
composer require myparcelnl/sdk
```

## Changelog

All notable changes to this project will be documented in this file. See
[Conventional Commits](https://conventionalcommits.org) for commit guidelines.

### [5.8.0](https://github.com/myparcelnl/magento/compare/v5.7.1...v5.8.0) (2026-06-23)


#### :sparkles: New Features

* self-service, scoped API access tokens for the MyParcel REST integration ([#950](https://github.com/myparcelnl/magento/issues/950)) ([cc94040](https://github.com/myparcelnl/magento/commit/cc94040b66509a557fe931a4a82b6dfa1884697e))

### [5.7.1](https://github.com/myparcelnl/magento/compare/v5.7.0...v5.7.1) (2026-06-18)


#### :bug: Bug Fixes

* **checkout:** use correct country for initial delivery options ([#961](https://github.com/myparcelnl/magento/issues/961)) ([d91d1cd](https://github.com/myparcelnl/magento/commit/d91d1cde0642cd251325eb64f850192653e4238b))
* improve delivery costs matrix json defensively ([#959](https://github.com/myparcelnl/magento/issues/959)) ([17d790e](https://github.com/myparcelnl/magento/commit/17d790e0284f4ccc77c1ae21140b0fc6c6d23084))

### [5.7.0](https://github.com/myparcelnl/magento/compare/v5.6.0...v5.7.0) (2026-06-05)


#### :bug: Bug Fixes

* **checkout:** prevent shipping method loop (2) ([#960](https://github.com/myparcelnl/magento/issues/960)) ([adec5ac](https://github.com/myparcelnl/magento/commit/adec5ac92f1ab4a1a8553ca117841d0e3134fa31))
* **checkout:** prevent shipping_methods loop when interacting with delivery options ([#958](https://github.com/myparcelnl/magento/issues/958)) ([483dac4](https://github.com/myparcelnl/magento/commit/483dac4bd77cd7089ef165faa9b8df44b7bd22c5))


#### :sparkles: New Features

* add languages DE, IT, PL, DA, and fallback to EN nicely ([#957](https://github.com/myparcelnl/magento/issues/957)) ([75cb646](https://github.com/myparcelnl/magento/commit/75cb646b46a1fb227ef2d5b80ec7c52416458da5))

### [5.6.0](https://github.com/myparcelnl/magento/compare/v5.5.2...v5.6.0) (2026-05-28)


#### :sparkles: New Features

* **api:** add a generic proxy to inject API key into API requests ([#936](https://github.com/myparcelnl/magento/issues/936)) ([1e10eff](https://github.com/myparcelnl/magento/commit/1e10effee15106703b0615094d47c42ae0fd875e))
* dedicated delivery options endpoint ([#941](https://github.com/myparcelnl/magento/issues/941)) ([2d7d388](https://github.com/myparcelnl/magento/commit/2d7d388c76794f7040489e74493187a0e0f09699)), closes [thephpleague/openapi-psr7-validator#163](https://github.com/thephpleague/openapi-psr7-validator/issues/163)
* improve user agent header ([#953](https://github.com/myparcelnl/magento/issues/953)) ([11a20e2](https://github.com/myparcelnl/magento/commit/11a20e23023f30faffd41efe571035c41e54872d))
* use delivery options v7 with capabilities and compact view ([#954](https://github.com/myparcelnl/magento/issues/954)) ([38e4701](https://github.com/myparcelnl/magento/commit/38e4701b340002d4ae177ee2efb08c3ed7eb44f7))

### [5.5.2](https://github.com/myparcelnl/magento/compare/v5.5.1...v5.5.2) (2026-03-30)


#### :bug: Bug Fixes

* **security:** fix tar vulnerability ([#945](https://github.com/myparcelnl/magento/issues/945)) ([f60044f](https://github.com/myparcelnl/magento/commit/f60044f7b4f2397182ddb81ba50359827dbca7b8))

### [5.5.1](https://github.com/myparcelnl/magento/compare/v5.5.0...v5.5.1) (2026-03-13)


#### :bug: Bug Fixes

* prevent deprecated functionality error ([#943](https://github.com/myparcelnl/magento/issues/943)) ([067b9c1](https://github.com/myparcelnl/magento/commit/067b9c118d2417dec1e460d556f79e51bf456531))
* prevent unserialize errors for orders ([#944](https://github.com/myparcelnl/magento/issues/944)) ([36bdce5](https://github.com/myparcelnl/magento/commit/36bdce5709527065c8c887ce1b444a980770b747))

### [5.5.0](https://github.com/myparcelnl/magento/compare/v5.4.0...v5.5.0) (2026-03-02)


#### :sparkles: New Features

_(Changelog truncated for .md surface. Full history on https://packagento.com/myparcelnl/magento.)_

## Recent Versions

| Version | Released |
|---|---|
| 5.8.0 | 2026-06-23 |
| 5.7.1 | 2026-06-18 |
| 5.7.0 | 2026-06-05 |
| 5.6.0 | 2026-05-28 |
| 5.5.2 | 2026-03-30 |
| 5.5.1 | 2026-03-13 |
| 5.5.0 | 2026-03-02 |
| 5.4.0 | 2026-02-17 |
| 5.3.0 | 2026-02-11 |
| 5.2.2 | 2026-02-05 |

Showing 10 of 210 versions. Full release history on https://packagento.com/myparcelnl/magento.

## Dependencies

### Require

| Package | Constraint |
|---|---|
| guzzlehttp/guzzle | ^7.0 |
| magento/framework | >=101.0.8 <102 \|\| >=102.0.1 |
| myparcelnl/sdk | 11.0.0-beta.15@beta |
| php | ^7.4 \|\| ^8.0 |

### Require (dev)

| Package | Constraint |
|---|---|
| league/openapi-psr7-validator | ^0.22 |
| mockery/mockery | ^1.6 |
| nyholm/psr7 | ^1.8 |
| pestphp/pest | ^2.0 |

## Quality

Latest release (5.8.0) fails the Packagento QA pipeline. Verdicts below are per-cell (Magento line × PHP version) for the matrixed tools, and run-once for the static / security tiers.


### Compatibility

Each Magento line is installed on its supported PHP versions, then the module is built (DI compile + static-content deploy). Cells show passed / failed / untested; staircase gaps render as `–`.

| Magento | PHP 8.2 | PHP 8.3 | PHP 8.4 | PHP 8.5 |
|---|---|---|---|---|
| 2.4.7 | 1 | 1 | – | – |
| 2.4.8 | – | 1 | 1 | – |
| 2.4.9 | – | – | 1 | 1 |


### Code Quality

Advisory checks against the module's source. Never affect the Compatibility verdict — a phpcs finding can't make a module incompatible.

#### Static Analysis

Coding standards (phpcs), mess detection (phpmd), copy-pasted code (cpd), PHP cross-version compatibility, composer.json validity. Each runs once for the whole module.

| Tool | Status | Findings | Summary |
|---|---|---|---|
| PHPCS | Fail | 832 | 121 errors, 711 warnings (ruleset: Magento2) — 182 auto-fixable with phpcbf |
| PHPMD | Warning | 75 | 75 rule violations (UnusedFormalParameter:19, MissingImport:10, CyclomaticComplexity:9, NPathComplexity:9, IfStatementAssignment:7) |
| Cpd | Warning | 1 | 1 duplicated chunk spanning 24 total lines (min-lines=5, min-tokens=70) |
| Composer validate | Info | 3 | valid; 3 advisory notes (composer validate --strict) |

#### PHPStan

Type-checks the module against a real Magento install. Re-runs per Magento + PHP version because resolvable symbols differ between releases.

| Magento | PHP 8.2 | PHP 8.3 | PHP 8.4 | PHP 8.5 |
|---|---|---|---|---|
| 2.4.7 | Error | Error | – | – |
| 2.4.8 | – | Error | Error | – |
| 2.4.9 | – | – | Error | Error |


### Tests

Unit and integration suites run per Magento + PHP cell. Test failures speak to the module's behaviour, not its compatibility with a line, so they're reported here separately.

#### Unit Tests

| Magento | PHP 8.2 | PHP 8.3 | PHP 8.4 | PHP 8.5 |
|---|---|---|---|---|
| 2.4.7 | Error | Error | – | – |
| 2.4.8 | – | Error | Error | – |
| 2.4.9 | – | – | Error | not tested |

#### Integration Tests

| Magento | PHP 8.2 | PHP 8.3 | PHP 8.4 | PHP 8.5 |
|---|---|---|---|---|
| 2.4.7 | N/A | N/A | – | – |
| 2.4.8 | – | N/A | N/A | – |
| 2.4.9 | – | – | N/A | N/A |


### Security

Dependency-advisory audit (composer audit) plus a source malware scan. A malware detection fails the version outright.

| Tool | Status | Findings | Summary |
|---|---|---|---|
| Composer audit | Pass | 0 |  |
| Malware scan | Pass | 0 |  |

## Licence and pricing

Free. A licence is still minted on checkout and bound to your project for Composer access — no payment step.

Refundable within 14 days of first purchase via https://packagento.com/account/refunds/.

## Install via Claude Code or any MCP client

The Packagento MCP server can run the licence + project + Composer steps above in one tool call:

```
purchase_and_install_packages(
  composer_names=["myparcelnl/magento"],
  project_id="proj_xxx"
)
```

This handles cart, checkout, licence minting, project activation, and writes auth.json credentials. Connect a client with `claude mcp add packagento https://mcp.packagento.com`. Full setup at https://packagento.com/docs/mcp-setup.

## Vendor

myparcelnl is a Magento 2 vendor on Packagento. See https://packagento.com/myparcelnl.md for their full catalogue.

