PHPackages                             hennio/postcodenlapi - 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. [API Development](/categories/api)
4. /
5. hennio/postcodenlapi

ActiveLibrary[API Development](/categories/api)

hennio/postcodenlapi
====================

Laravel PostcodeNL API package

0.3.1(6y ago)018MITPHP

Since Oct 24Pushed 6y agoCompare

[ Source](https://github.com/hennio/postcodenlapi)[ Packagist](https://packagist.org/packages/hennio/postcodenlapi)[ Docs](https://github.com/hennio/postcodenlapi)[ RSS](/packages/hennio-postcodenlapi/feed)WikiDiscussions master Synced 1w ago

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

Laravel PostcodeNL API package
==============================

[](#laravel-postcodenl-api-package)

Integrates the PostcodeNL API with 6 via a ServiceProvider and Facade. This package currently supports only the validation of dutch addresses.

### Installation

[](#installation)

```
composer require hennio/postcodenlapi

```

Add a ServiceProvider to your providers array in `config/app.php`:

```
    'providers' => [
    	//other things here

    	Hennio\Postcodenlapi\PostcodenlapiServiceProvider::class,
    ];
```

Add the facade to the facades array:

```
    'aliases' => [
    	//other things here
        'Postcodenlapi' => Hennio\Postcodenlapi\Facades\Postcodenlapi::class,
    ];
```

### Configuration

[](#configuration)

##### Via .env

[](#via-env)

Put your postcode.nl api-keys in your .env-file

```
POSTCODENL_KEY= [...]
POSTCODENL_SECRET= [...]

```

##### Publish the config

[](#publish-the-config)

```
php artisan vendor:publish --provider="Hennio\Postcodenlapi\PostcodenlapiServiceProvider"

```

Alternatively set your api `key` and `secret` in the `config/postcodenlapi.php`

### Usage

[](#usage)

To get the `street` and `city` linked to a Dutch `postalcode`, `housenr` and `extension`. The response is returned in json format, ideal for ajax.

```
use Postcodenlapi;

$data = Postcodenlapi::validateDutch('1010AA', '1', 'a');
```

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 94.1% 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 ~44 days

Total

4

Last Release

2266d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/7431d91d427d2d5e9bf483d66be71f11ae95bf92c99759c22e9051601d14a475?d=identicon)[hennio](/maintainers/hennio)

---

Top Contributors

[![hennio](https://avatars.githubusercontent.com/u/307488?v=4)](https://github.com/hennio "hennio (16 commits)")[![deniztezcan](https://avatars.githubusercontent.com/u/10155092?v=4)](https://github.com/deniztezcan "deniztezcan (1 commits)")

### Embed Badge

![Health badge](/badges/hennio-postcodenlapi/health.svg)

```
[![Health](https://phpackages.com/badges/hennio-postcodenlapi/health.svg)](https://phpackages.com/packages/hennio-postcodenlapi)
```

###  Alternatives

[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3731.2M42](/packages/tencentcloud-tencentcloud-sdk-php)[convertkit/convertkitapi

Kit PHP SDK for the Kit API

2167.1k1](/packages/convertkit-convertkitapi)[mapado/rest-client-sdk

Rest Client SDK for hydra API

1125.9k2](/packages/mapado-rest-client-sdk)

PHPackages © 2026

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