PHPackages                             petelawrence/getaddress - 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. petelawrence/getaddress

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

petelawrence/getaddress
=======================

A PHP library for the Ideal Postcodes postcode lookup service

0.4.0(3mo ago)4120.8k↓50%6[2 issues](https://github.com/PeteLawrence/getaddress/issues)PHP

Since Jul 20Pushed 3mo ago2 watchersCompare

[ Source](https://github.com/PeteLawrence/getaddress)[ Packagist](https://packagist.org/packages/petelawrence/getaddress)[ Docs](https://github.com/PeteLawrence/getaddress)[ RSS](/packages/petelawrence-getaddress/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (10)Versions (8)Used By (0)

getaddress Ideal Postcodes
==========================

[](#getaddress-ideal-postcodes)

A PHP library for the [Ideal Postcodes](https://ideal-postcodes.co.uk) postcode lookup service.

Important update
----------------

[](#important-update)

**GetAddress.io has been replaced with Ideal Postcodes.**

Following a High Court ruling in favour of Ideal Postcodes, *GetAddress.io* ceased operations in February 2026. The court found that GetAddress.io had unlawfully used Ideal Postcodes’ database and breached database rights and licensing terms.

As a result, this library and its documentation now reference **Ideal Postcodes** as the lookup provider.

More details can be found here:

Pre-requisites
==============

[](#pre-requisites)

You will require a [Ideal Postcodes](https://ideal-postcodes.co.uk) API key.

Usage
=====

[](#usage)

```
$client = new \petelawrence\getaddress\GetAddressClient('YOUR-IDEAL-POSTCODES-API-KEY');
$result = $client->lookup('NR10 4JJ');
$address0 = $result->getAddresses()[0];
echo $address0->getTown();

```

Tests
=====

[](#tests)

```
GETADDRESSKEY=YOUR-IDEAL-POSTCODES-API-KEY vendor/bin/phpunit tests/

```

###  Health Score

47

—

FairBetter than 94% of packages

Maintenance71

Regular maintenance activity

Popularity34

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 91.4% 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 ~770 days

Recently: every ~874 days

Total

6

Last Release

103d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1871471?v=4)[Pete Lawrence](/maintainers/PeteLawrence)[@PeteLawrence](https://github.com/PeteLawrence)

---

Top Contributors

[![PeteLawrence](https://avatars.githubusercontent.com/u/1871471?v=4)](https://github.com/PeteLawrence "PeteLawrence (32 commits)")[![chrisdobsontocc](https://avatars.githubusercontent.com/u/212433023?v=4)](https://github.com/chrisdobsontocc "chrisdobsontocc (2 commits)")[![ScottBaxter1](https://avatars.githubusercontent.com/u/996541?v=4)](https://github.com/ScottBaxter1 "ScottBaxter1 (1 commits)")

---

Tags

postcodegetaddress.io

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/petelawrence-getaddress/health.svg)

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

###  Alternatives

[ralphjsmit/laravel-helpers

A package containing handy helpers for your Laravel-application.

13704.6k2](/packages/ralphjsmit-laravel-helpers)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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