# tig/postnl-magento2

`composer require tig/postnl-magento2`

Canonical URL: https://packagento.com/tig/postnl-magento2

## At a glance

- **Vendor**: tig (https://packagento.com/tig.md)
- **Latest version**: 1.25.1 — released 2026-06-29
- **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/tig/postnl-magento2 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 tig/postnl-magento2:*
   bin/magento setup:upgrade
   bin/magento setup:di:compile
   bin/magento cache:flush
   ```

## README

[![Lastest Stable Version](https://img.shields.io/github/v/release/tig-nl/postnl-magento2?style=for-the-badge&color=3244b0)](https://github.com/tig-nl/postnl-magento2/releases/latest)
![TIG PostNL tested 2.3.7 versions](https://img.shields.io/badge/Tested%20with%20Magento-2.3.7-%2300cf00?style=for-the-badge)
![TIG PostNL tested 2.4.8 versions](https://img.shields.io/badge/Tested%20with%20Magento-2.4.8-%2300cf00?style=for-the-badge)
[![Total Extension downloads](https://img.shields.io/packagist/dt/tig/postnl-magento2?style=for-the-badge&color=ed7000)](https://packagist.org/packages/tig/postnl-magento2/stats)


This is the official PostNL Magento 2 extension to connect your Magento 2 webshop with PostNL.
- 
### Resources 
Manual => https://postnl.github.io/postnl-magento2/
<br>PostNL Hyvä Checkout extension: https://github.com/postnl/postnl-magento2-hyva-checkout/

### Support
For questions related to your PostNL account and PostNL delivery options and products, please contact with PostNL or your PostNL accountmanager.

For questions about installing and configuring the extension please consult the relevant documentation or contact our technical support. 
- **Webform:** (https://developer.postnl.nl/support/form/)

## Recent Versions

| Version | Released |
|---|---|
| 1.25.1 | 2026-06-29 |
| 1.25.0 | 2026-06-10 |
| 1.24.1 | 2026-03-09 |
| 1.23.0 | 2025-11-14 |
| 1.22.0 | 2025-09-22 |
| 1.21.0 | 2025-07-01 |
| 1.20.1 | 2025-04-08 |
| 1.20.0 | 2025-03-31 |
| 1.19.0 | 2025-03-10 |
| 1.18.0 | 2025-01-21 |

Showing 10 of 80 versions. Full release history on https://packagento.com/tig/postnl-magento2.

## Dependencies

### Require

| Package | Constraint |
|---|---|
| ext-json | * |
| ext-soap | * |
| magento/framework | ~102.0\|~103.0 |
| php | ~8.1\|~8.2\|~8.3\|~8.4\|~8.5 |
| setasign/fpdf | ^1.8.2 |
| setasign/fpdi | ^2.3.2 |
| tecnickcom/tc-lib-barcode | ^2.4 |

### Require (dev)

| Package | Constraint |
|---|---|
| magento/magento-coding-standard | * |
| object-calisthenics/phpcs-calisthenics-rules | ^3.7 |
| phpunit/phpunit | ^9.0 |
| satooshi/php-coveralls | ^1.0 |

## Quality

Latest release (1.25.1) 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 | Pass | Pass | – | – |
| 2.4.8 | – | Pass | Pass | – |
| 2.4.9 | – | – | Pass | Pass |


### 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 | 987 | 20 errors, 967 warnings (ruleset: Magento2) — 186 auto-fixable with phpcbf |
| PHPMD | Warning | 229 | 229 rule violations (UndefinedVariable:45, UnusedFormalParameter:41, MissingImport:34, IfStatementAssignment:21, UnusedLocalVariable:18) |
| Cpd | Warning | 17 | 17 duplicated chunks spanning 913 total lines (min-lines=5, min-tokens=70) |
| Composer validate | Info | 1 | valid; 1 advisory note (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 | 457 | 457 | – | – |
| 2.4.8 | – | 459 | 459 | – |
| 2.4.9 | – | – | 454 | 454 |


### 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 | 22 | 22 | – | – |
| 2.4.8 | – | 177 | 177 | – |
| 2.4.9 | – | – | 189 | 193 |


### Security

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

| Tool | Status | Findings | Summary |
|---|---|---|---|
| Composer audit | N/A | 0 | no resolvable dependency tree to audit — Your requirements could not be resolved to an installable set of packages. Problem 1 |
| 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=["tig/postnl-magento2"],
  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

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

