PHPackages                             nickurt/laravel-postcodeapi - 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. nickurt/laravel-postcodeapi

ActiveLibrary[API Development](/categories/api)

nickurt/laravel-postcodeapi
===========================

Universal PostcodeApi for Laravel 11.x/12.x/13.x

2.1(2mo ago)97221.2k↓10.2%18MITPHPPHP ^8.2CI passing

Since Jun 20Pushed 2mo ago3 watchersCompare

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

READMEChangelogDependencies (8)Versions (29)Used By (0)

Laravel PostcodeApi
-------------------

[](#laravel-postcodeapi)

[![Build Status](https://github.com/nickurt/laravel-postcodeapi/workflows/tests/badge.svg)](https://github.com/nickurt/laravel-postcodeapi/actions)[![Total Downloads](https://camo.githubusercontent.com/b18ed430c502a052f0e2d85ded81c3dcf8035083fd698bbe46cde1e7afbcbc1f/68747470733a2f2f706f7365722e707567782e6f72672f6e69636b7572742f6c61726176656c2d706f7374636f64656170692f642f746f74616c2e737667)](https://packagist.org/packages/nickurt/laravel-postcodeapi)[![Latest Stable Version](https://camo.githubusercontent.com/fd7182d2f0869439aac263307747de0a18ceaaae1bf9dc2ca1b1a91dec228f8b/68747470733a2f2f706f7365722e707567782e6f72672f6e69636b7572742f6c61726176656c2d706f7374636f64656170692f762f737461626c652e737667)](https://packagist.org/packages/nickurt/laravel-postcodeapi)[![MIT Licensed](https://camo.githubusercontent.com/b35d5906b354ccb1ef1b00071755af6d075421542506d6ba3779c02ba5a3fe70/68747470733a2f2f706f7365722e707567782e6f72672f6e69636b7572742f6c61726176656c2d706f7374636f64656170692f6c6963656e73652e737667)](LICENSE.md)

### Installation

[](#installation)

Install this package with composer:

```
composer require nickurt/laravel-postcodeapi

```

Copy the config files for the api

```
php artisan vendor:publish --provider="nickurt\PostcodeApi\ServiceProvider" --tag="config"

```

### Examples

[](#examples)

#### Default - de\_DE

[](#default---de_de)

```
$postCode10 = PostcodeApi::create('ZippopotamusDE')->find('07751');
```

#### Default - en\_AU

[](#default---en_au)

```
$postCode11 = PostcodeApi::create('PostcodeApiComAu')->find('3066');
```

#### Default - en\_GB

[](#default---en_gb)

```
$postCode12 = PostcodeApi::create('GetAddressIO')->find('SW1A1AA');
$postCode13 = PostcodeApi::create('IdealPostcodes')->find('SW1A1AA');
$postCode14 = PostcodeApi::create('PostcodesIO')->find('SW1A1AA');
```

#### Default - en\_US

[](#default---en_us)

```
$postCode15 = PostcodeApi::create('Bing')->find('92270');
$postCode16 = PostcodeApi::create('Geocodio')->find('92270');
$postCode17 = PostcodeApi::create('Google')->find('92270');
$postCode18 = PostcodeApi::create('Here')->find('92270');
$postCode19 = PostcodeApi::create('LocationIQ')->find('92270');
$postCode20 = PostcodeApi::create('Mapbox')->find('92270');
$postCode21 = PostcodeApi::create('OpenCage')->find('92270');
$postCode22 = PostcodeApi::create('TomTom')->find('92270');
```

#### Default - fr\_FR

[](#default---fr_fr)

```
$postCode23 = PostcodeApi::create('AdresseDataGouv')->find('75007');
$postCode24 = PostcodeApi::create('AdresseDataGouv')->findByPostcodeAndHouseNumber('75007', '5 Avenue Anatole France');
```

#### Default - nl\_BE

[](#default---nl_be)

```
$postCode25 = PostcodeApi::create('Pro6PP_BE')->find('1000');
```

#### Default - nl\_NL

[](#default---nl_nl)

```
$postCode26 = PostcodeApi::create('ApiPostcode')->findByPostcodeAndHouseNumber('1118CP', '202');
$postCode27 = PostcodeApi::create('NationaalGeoRegister')->find('1118CP');
$postCode28 = PostcodeApi::create('NationaalGeoRegister')->findByPostcodeAndHouseNumber('1118CP', '202');
$postCode29 = PostcodeApi::create('PostcoDe')->findByPostcodeAndHouseNumber('1118CP', '202');
$postCode30 = PostcodeApi::create('PostcodeApiNu')->find('1118CP');
$postCode31 = PostcodeApi::create('PostcodeApiNu')->findByPostcodeAndHouseNumber('1118CP', '202');
$postCode32 = PostcodeApi::create('PostcodeApiNuV3')->find('1118CP');
$postCode33 = PostcodeApi::create('PostcodeApiNuV3')->findByPostcodeAndHouseNumber('1118CP', '202');
$postCode34 = PostcodeApi::create('PostcodeNL')->findByPostcodeAndHouseNumber('1118CP', '202');
$postCode35 = PostcodeApi::create('Pro6PP_NL')->find('1118CP');
```

#### Route

[](#route)

```
Route::get('/{postCode}', function($postCode) {
    $postCode36 = PostcodeApi::create('PostcodeApiNu')->find($postCode);

    return Response::json($postCode35->toArray(), 200, [], JSON_PRETTY_PRINT);
});
```

### Providers

[](#providers)

[AdresseDataGouv](https://adresse.data.gouv.fr), [ApiPostcode](https://api-postcode.nl), [Bing](https://www.bingmapsportal.com), [Geocodio](https://www.geocod.io), [GetAddresIO](https://getaddress.io), [Google](https://developers.google.com/maps/documentation/geocoding/intro), [Here](https://www.here.com), [IdealPostcodes](https://ideal-postcodes.co.uk), [LocationIQ](https://locationiq.com), [Mapbox](https://www.mapbox.com/), [NationaalGeoRegister](https://nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/home), [OpenCage](https://opencagedata.com/), [postco.de](https://postco.de), [PostcodeApiComAu](https://postcodeapi.com.au), [PostcodeApiNu](https://www.postcodeapi.nu), [PostcodeNL](https://www.postcode.nl), [PostcodesIO](https://api.postcodes.io), [Pro6PP\_BE](https://www.pro6pp.nl), [Pro6PP\_NL](https://www.pro6pp.nl), [TomTom](https://developer.tomtom.com/content/search-api-explorer)

### Tests

[](#tests)

```
composer test
```

---

###  Health Score

66

—

FairBetter than 99% of packages

Maintenance88

Actively maintained with recent releases

Popularity49

Moderate usage in the ecosystem

Community21

Small or concentrated contributor base

Maturity86

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 87.6% 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 ~157 days

Recently: every ~226 days

Total

26

Last Release

60d ago

Major Versions

0.1 → 1.02016-10-19

1.21 → 2.02025-02-28

PHP version history (9 changes)0.1PHP &gt;=5.4.0

1.0PHP &gt;=5.6.0

1.1PHP ^7.0

1.6PHP ^7.1.3

1.7PHP ^7.2

1.16PHP ^8.0|^7.4

1.17PHP ^8.0

1.18PHP ^8.1

1.21PHP ^8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/41ad8e23eeb9da6d6c8495ba9bb8021aeeba1d45307b7dad2c70c3fa6703d713?d=identicon)[nickurt](/maintainers/nickurt)

---

Top Contributors

[![nickurt](https://avatars.githubusercontent.com/u/5840084?v=4)](https://github.com/nickurt "nickurt (120 commits)")[![laravel-shift](https://avatars.githubusercontent.com/u/15991828?v=4)](https://github.com/laravel-shift "laravel-shift (4 commits)")[![avido](https://avatars.githubusercontent.com/u/14986?v=4)](https://github.com/avido "avido (3 commits)")[![lamalamaMark](https://avatars.githubusercontent.com/u/1886210?v=4)](https://github.com/lamalamaMark "lamalamaMark (2 commits)")[![bvweijen](https://avatars.githubusercontent.com/u/2518540?v=4)](https://github.com/bvweijen "bvweijen (2 commits)")[![Koozza](https://avatars.githubusercontent.com/u/1731647?v=4)](https://github.com/Koozza "Koozza (2 commits)")[![speedykhr](https://avatars.githubusercontent.com/u/34813463?v=4)](https://github.com/speedykhr "speedykhr (1 commits)")[![barryvdh](https://avatars.githubusercontent.com/u/973269?v=4)](https://github.com/barryvdh "barryvdh (1 commits)")[![dependabot-preview[bot]](https://avatars.githubusercontent.com/in/2141?v=4)](https://github.com/dependabot-preview[bot] "dependabot-preview[bot] (1 commits)")[![arjanwestdorp](https://avatars.githubusercontent.com/u/7716654?v=4)](https://github.com/arjanwestdorp "arjanwestdorp (1 commits)")

---

Tags

binggeocodinggeolocationgoogleherelaravellaravel-postcodeapipostcodepro6ppzipcodeapilaravelpostcodeuniversalpostcodeapi

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/nickurt-laravel-postcodeapi/health.svg)

```
[![Health](https://phpackages.com/badges/nickurt-laravel-postcodeapi/health.svg)](https://phpackages.com/packages/nickurt-laravel-postcodeapi)
```

###  Alternatives

[openai-php/laravel

OpenAI PHP for Laravel is a supercharged PHP API client that allows you to interact with the Open AI API

3.7k7.6M74](/packages/openai-php-laravel)[darkaonline/l5-swagger

OpenApi or Swagger integration to Laravel

2.9k34.0M112](/packages/darkaonline-l5-swagger)[knuckleswtf/scribe

Generate API documentation for humans from your Laravel codebase.✍

2.3k12.2M45](/packages/knuckleswtf-scribe)[mozex/anthropic-laravel

Anthropic PHP for Laravel is a supercharged PHP API client that allows you to interact with the Anthropic API

71226.4k1](/packages/mozex-anthropic-laravel)[scriptdevelop/whatsapp-manager

Paquete para manejo de WhatsApp Business API en Laravel

762.6k](/packages/scriptdevelop-whatsapp-manager)[xchimx/laravel-unsplash

Laravel package for easy integration with the Unsplash API. It allows you to use the Unsplash API in your Laravel applications to fetch photos, collections, and user data.

246.6k](/packages/xchimx-laravel-unsplash)

PHPackages © 2026

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