petelawrence/getaddress
最新稳定版本:0.4.0
Composer 安装命令:
composer require petelawrence/getaddress
包简介
A PHP library for the Ideal Postcodes postcode lookup service
README 文档
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/
统计信息
- 总下载量: 120.81k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 5
- 点击次数: 5
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Unknown
- 更新时间: 2015-07-20