postcode-nl / api-magento2-module

postcode-nl/api-magento2-module

Postcode.eu Address Validation module for Magento 2. Adds autocompletion for addresses in multiple countries using official postal data.

magento2-module Compatibility: 2.4.7 Code Quality: Fail Tests: N/A Security: Pass BSD-2-Clause

[image: Postcode.eu]

International Address API module for Magento 2

Adds autocompletion for addresses to the checkout page. Multiple countries are supported using official postal data via the Postcode.eu API.

This module is maintained by Postcode.eu.

Postcode.eu account

A Postcode.eu account is required.
Testing is free. After testing you can choose to purchase a subscription.

Installation instructions

  1. Install this component using Composer:
$ composer require postcode-nl/api-magento2-module
  1. Upgrade, compile & clear cache:
$ php bin/magento setup:upgrade
$ php bin/magento setup:di:compile
$ php bin/magento cache:flush

Screenshots

International Address API

A single field for autocompletion:

[image: image]
[image: image]

To allow users to skip the autocomplete field and manually enter an address, there's an option to add a link to manual address entry:

[image: image]

Dutch Postcode API

Get a Dutch address by postcode and house number. In this example asking the user to select from valid house number additions:

[image: image]

A formatted address is shown when the postcode and house number combination is valid (this is the default output option):

[image: image]

Other output options are:

  • Hide address fields until postcode and house number combination is valid.
  • Disable address fields until postcode and house number combination is valid.
  • No change; address fields remain visible and editable.

GraphQL Support

We provide a separate module for GraphQL support, allowing you to query address data via Magento's GraphQL API. This enables integration with headless Magento setups, progressive web applications (PWAs), and other front-end technologies that leverage GraphQL.

Compatibility

Although we can't guarantee compatibility with other checkout modules, our module works well with most one-step-checkout modules. If you are having issues and think this may be caused by our module, please contact Postcode.eu and tell us which other module(s) and version(s) are used.

If you found the solution already and have some code to contribute, feel free to open a pull request in this repository.

Address API documentation

You can find our API documentation at https://developer.postcode.eu/documentation.

Module Wiki

Instructions for additional configuration and customization can be found on the wiki pages.

FAQ and Knowledge Base

License

The code is available under the Simplified BSD License, see the included LICENSE file.

No changelog yet

The vendor hasn't published a changelog. Tagged releases appear in the Versions tab.

Versions
Version Stability QA Status Compatibility Released
4.1.0 stable Fail Magento 2.4.7 Details 2026-05-13 08:13:55
4.0.0 stable Not tested Not yet tested Details 2026-03-23 15:25:15
3.7.1 stable Not tested Not yet tested Details 2026-02-02 11:47:43
3.7.0 stable Not tested Not yet tested Details 2026-01-26 10:05:36
3.6.3 stable Not tested Not yet tested Details 2025-11-12 09:30:49
3.6.2 stable Not tested Not yet tested Details 2025-10-22 12:49:42
3.6.1 stable Not tested Not yet tested Details 2025-10-15 13:17:54
3.6.0 stable Not tested Not yet tested Details 2025-07-02 12:52:13
3.5.1 stable Not tested Not yet tested Details 2025-05-06 09:54:28
3.5.0 stable Not tested Not yet tested Details 2025-02-04 10:20:05
3.4.0 stable Not tested Not yet tested Details 2024-10-23 09:26:40
3.3.0 stable Not tested Not yet tested Details 2024-07-17 13:18:53
3.2.0 stable Not tested Not yet tested Details 2023-12-06 09:57:41
3.1.11 stable Not tested Not yet tested Details 2023-08-16 11:13:56
3.1.10 stable Not tested Not yet tested Details 2023-06-06 13:32:52
3.1.9 stable Not tested Not yet tested Details 2023-01-05 09:16:02
3.1.8 stable Not tested Not yet tested Details 2022-11-09 09:15:05
3.1.7.1 stable Not tested Not yet tested Details 2022-08-31 14:04:19
3.1.7 stable Not tested Not yet tested Details 2022-08-29 13:48:40
3.1.6.1 stable Not tested Not yet tested Details 2022-07-07 09:09:57
3.1.5 stable Not tested Not yet tested Details 2022-05-24 09:27:28
3.1.4 stable Not tested Not yet tested Details 2022-04-19 09:34:05
3.1.3 stable Not tested Not yet tested Details 2022-02-14 11:10:17
3.1.2 stable Not tested Not yet tested Details 2021-11-24 10:31:46
3.1.1 stable Not tested Not yet tested Details 2021-07-06 10:08:24
3.1.0 stable Not tested Not yet tested Details 2021-06-07 09:42:58
3.0.2 stable Not tested Not yet tested Details 2021-04-06 09:46:02
3.0.0 stable Not tested Not yet tested Details 2021-03-31 11:11:44
2.0.4 stable Not tested Not yet tested Details 2020-08-10 15:09:31
2.0.3 stable Not tested Not yet tested Details 2020-05-08 13:56:03
2.0.2 stable Not tested Not yet tested Details 2020-04-28 11:18:45
2.0.1 stable Not tested Not yet tested Details 2020-04-14 06:55:39
2.0.0 stable Not tested Not yet tested Details 2020-02-10 12:23:28
1.0.3 stable Not tested Not yet tested Details 2020-01-29 15:07:45
1.0.2 stable Not tested Not yet tested Details 2019-12-18 12:19:46
1.0.1 stable Not tested Not yet tested Details 2019-12-02 09:58:07
1.0.0 stable Not tested Not yet tested Details 2019-11-28 10:07:19

Requires 2

Package Constraint
magento/module-checkout ~100.4
php ^7.4 || ^8.0

Compatibility

Each Magento release line is installed on its supported PHP versions, then the module is built (DI compilation + static-content deploy) and its unit and integration suites are run. The matrix shows the lines and PHP versions the module is confirmed to install and run on. Code-quality results further down (phpstan, phpcs, …) are reported separately and never affect compatibility.

Compatibility matrix (Magento × PHP)
Magento PHP 8.2 PHP 8.3 PHP 8.4 PHP 8.5
2.4.7 Pass Pass
2.4.8 Pass Fail di error
2.4.9 Fail di error Fail di error

Code Quality

Advisory checks against the module's source. Static analysis runs once across the whole module; PHPStan re-runs per Magento + PHP version because resolvable symbols differ between releases. These NEVER affect the Compatibility badge — 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.

Static analysis results
Tool Status Findings Summary
PHPCS Fail 47 1 error, 46 warnings (ruleset: Magento2)
PHPMD Warning 13 13 rule violations (EmptyCatchBlock:3, NPathComplexity:2, MissingImport:2, CyclomaticComplexity:2, UnusedFormalParameter:2)
Cpd Pass 0
Composer validate Info 1 valid; 1 advisory note (composer validate --strict)

PHPStan

Type-checks the module's PHP against a real Magento install at the configured gate level. Re-runs per Magento and PHP version because resolvable symbols differ between releases. Cell → details modal.

PHPStan results by Magento and PHP version
Magento PHP 8.2 PHP 8.3 PHP 8.4 PHP 8.5
2.4.7 35 35
2.4.8 35 36
2.4.9 36 36

Tests

Unit and integration suites, run for each applicable Magento and PHP version. A test failure speaks to the module's behaviour, not its compatibility with a Magento line, so it is reported here separately and never reddens the compatibility matrix.

Unit tests

Unit tests results by Magento and PHP version
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

Integration tests

Integration tests results by Magento and PHP version
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

Security checks run directly against the module: an audit of its declared dependencies for known vulnerabilities (composer audit) and a scan of its source for malware and web-shell signatures. Each runs once. A malware detection fails the version outright.

Security results
Tool Status Findings Summary
Composer audit Pass 0
Malware scan Pass 0
License
BSD-2-Clause
Homepage
https://www.postcode.eu
Make it pay

Turn an existing module into recurring revenue.

If you already maintain a Magento 2 module on GitHub or GitLab, listing it on Packagento takes about five minutes. We mirror your tags, handle distribution signing, and route paid licenses through Stripe Connect, so you can keep shipping the way you already do.