PHPackages                             hpolthof/postcode-tech - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. hpolthof/postcode-tech

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

hpolthof/postcode-tech
======================

A library to easily lookup Dutch postcodes using postcode.tech

v2.0.0(3mo ago)416.1k↓33.3%3[1 PRs](https://github.com/hpolthof/postcode-tech/pulls)1gpl-3.0-or-laterPHPPHP ^8.1

Since Feb 24Pushed 3mo ago2 watchersCompare

[ Source](https://github.com/hpolthof/postcode-tech)[ Packagist](https://packagist.org/packages/hpolthof/postcode-tech)[ RSS](/packages/hpolthof-postcode-tech/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)Dependencies (5)Versions (6)Used By (1)

Dutch Postcode Lookup
=====================

[](#dutch-postcode-lookup)

[![PHPUnit Tests](https://github.com/hpolthof/postcode-tech/actions/workflows/quality_assurance.yaml/badge.svg)](https://github.com/hpolthof/postcode-tech/actions/workflows/quality_assurance.yaml/badge.svg)[![Latest Stable Version](https://camo.githubusercontent.com/7fce7840521734da399591b36e5e6724bbcc8d4cf5f4dd36079564b0377c0aa6/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f50485025323076657273696f6e2d382e312532307e253230382e352d333444303538)](https://camo.githubusercontent.com/7fce7840521734da399591b36e5e6724bbcc8d4cf5f4dd36079564b0377c0aa6/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f50485025323076657273696f6e2d382e312532307e253230382e352d333444303538)

This is a wrapper around the [postcode.tech Postcode API](https://postcode.tech).

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

[](#installation)

To install use composer

```
composer require hpolthof/postcode-tech
```

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

[](#requirements)

You need an API key for this API to work. You can register for free and create an API Key.

Usage
-----

[](#usage)

Please see the example below for usage:

```
use Hpolthof\PostcodeTech\Exceptions\HttpException;
use Hpolthof\PostcodeTech\Exceptions\PostcodeNotFoundException;
use Hpolthof\PostcodeTech\Exceptions\ValidationException;
use Hpolthof\PostcodeTech\Postcode;

$apiKey = '';

try {
    $postcode = Postcode::search('1071BM', 29, $apiKey);
    echo $postcode->street(); // result: "Pieter Cornelisz. Hooftstraat"
    echo $postcode->city(); // result: "Amsterdam"
} catch (PostcodeNotFoundException $exception) {
    echo "Postcode was not found.";
} catch (ValidationException $exception) {
    echo "No valid lookup query was provided.";
} catch (HttpException $exception) {
    echo "Something else went wrong on the server side.";
} catch (Exception $exception) {
    echo "Something went wrong in this application. Crap!";
}
```

Disclaimer
----------

[](#disclaimer)

This package can be used free of charge. Obviously this software comes as is, and there are no warranties or whatsoever.

###  Health Score

52

—

FairBetter than 96% of packages

Maintenance81

Actively maintained with recent releases

Popularity30

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity69

Established project with proven stability

 Bus Factor1

Top contributor holds 69.2% 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 ~544 days

Total

5

Last Release

99d ago

Major Versions

v1.0.3 → v2.0.02026-02-08

PHP version history (4 changes)v1.0.1PHP 7.3.0

v1.0.2PHP ^7.3.0

v1.0.3PHP ^7.3.0|^8.0

v2.0.0PHP ^8.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/de1aeabf860985f978f94da5a6fe0fee1df693abb2ab2453375bdfc013b3f8ac?d=identicon)[hpolthof](/maintainers/hpolthof)

---

Top Contributors

[![kkevindev](https://avatars.githubusercontent.com/u/34477826?v=4)](https://github.com/kkevindev "kkevindev (9 commits)")[![hpolthof](https://avatars.githubusercontent.com/u/1415623?v=4)](https://github.com/hpolthof "hpolthof (3 commits)")[![basepack](https://avatars.githubusercontent.com/u/939500?v=4)](https://github.com/basepack "basepack (1 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/hpolthof-postcode-tech/health.svg)

```
[![Health](https://phpackages.com/badges/hpolthof-postcode-tech/health.svg)](https://phpackages.com/packages/hpolthof-postcode-tech)
```

###  Alternatives

[internal/dload

Downloads binaries.

98142.7k10](/packages/internal-dload)[symfony/ai-agent

PHP library for building agentic applications.

30536.7k44](/packages/symfony-ai-agent)[pixelopen/cloudflare-turnstile-bundle

A simple package to help integrate Cloudflare Turnstile on Symfony.

31205.8k3](/packages/pixelopen-cloudflare-turnstile-bundle)

PHPackages © 2026

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