PHPackages                             kkevindev/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. kkevindev/postcode-tech

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

kkevindev/postcode-tech
=======================

A library to easily lookup Dutch postcodes using postcode.tech

2.2.1(3mo ago)02.1k↓59.1%gpl-3.0-or-laterPHPPHP ^8.2CI passing

Since Oct 28Pushed 3w agoCompare

[ Source](https://github.com/kkevindev/postcode-tech)[ Packagist](https://packagist.org/packages/kkevindev/postcode-tech)[ RSS](/packages/kkevindev-postcode-tech/feed)WikiDiscussions main Synced yesterday

READMEChangelog (4)Dependencies (10)Versions (9)Used By (0)

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

[](#dutch-postcode-lookup)

[![PHPUnit Tests](https://github.com/kkevindev/postcode-tech/actions/workflows/quality_assurance.yaml/badge.svg)](https://github.com/kkevindev/postcode-tech/actions/workflows/quality_assurance.yaml/badge.svg)[![PHP Version Require](https://camo.githubusercontent.com/f6e25b61a4dea9dd52d1bef3df6c68012170f9285685cfeab463d1e579b79b22/687474703a2f2f706f7365722e707567782e6f72672f6b6b6576696e6465762f706f7374636f64652d746563682f726571756972652f706870)](https://packagist.org/packages/kkevindev/postcode-tech)[![Total Downloads](https://camo.githubusercontent.com/26533d04733e2975f0216bf1c3a493549e996852c6a8d3e93fb4faad7a181ad8/687474703a2f2f706f7365722e707567782e6f72672f6b6b6576696e6465762f706f7374636f64652d746563682f646f776e6c6f616473)](https://packagist.org/packages/kkevindev/postcode-tech)

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

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

[](#installation)

To install use composer

```
composer require kkevindev/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 Kkevindev\PostcodeTech\Exceptions\HttpException;
use Kkevindev\PostcodeTech\Exceptions\PostcodeNotFoundException;
use Kkevindev\PostcodeTech\Exceptions\ValidationException;
use Kkevindev\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

46

—

FairBetter than 92% of packages

Maintenance90

Actively maintained with recent releases

Popularity20

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 87.5% 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 ~52 days

Total

4

Last Release

91d ago

PHP version history (2 changes)2.0.0PHP ^8.1

2.2.1PHP ^8.2

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/34477826?v=4)[Kevin](/maintainers/kkevindev)[@kkevindev](https://github.com/kkevindev)

---

Top Contributors

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

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.5k5.9M736](/packages/sylius-sylius)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.4M203](/packages/sulu-sulu)[symfony/asset-mapper

Maps directories of assets &amp; makes them available in a public directory with versioned filenames.

1678.8M237](/packages/symfony-asset-mapper)[storyblok/php-content-api-client

PHP Client for Storyblok Content API

11176.5k10](/packages/storyblok-php-content-api-client)[sylius/core

Sylius e-commerce core. It integrates all components.

10157.7k43](/packages/sylius-core)

PHPackages © 2026

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