Skip to content

PeteLawrence/getaddress

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

getaddress

A PHP library for the getaddress.io postcode lookup service

Pre-requisites

You will require a getaddress.io API key. For low use applications (fewer than 20 lookups/day) this is free.

Usage

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

Tests

GETADDRESSKEY=YOUR-GETADDRESS.IO-KEY vendor/bin/phpunit tests/

About

A PHP library for the getaddress.io service

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages