petelawrence/getaddress

There is no license information available for the latest version (0.4.0) of this package.

A PHP library for the Ideal Postcodes postcode lookup service

Installs: 120 731

Dependents: 0

Suggesters: 0

Security: 0

Stars: 4

Watchers: 2

Forks: 6

Open Issues: 2

pkg:composer/petelawrence/getaddress

0.4.0 2026-02-05 09:54 UTC

This package is auto-updated.

Last update: 2026-02-05 10:12:53 UTC


README

A PHP library for the Ideal Postcodes postcode lookup service.

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: https://blog.ideal-postcodes.co.uk/ideal-postcodes-wins-high-court-ruling

Pre-requisites

You will require a Ideal Postcodes API key.

Usage

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

Tests

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