petelawrence/getaddress 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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

GitHub 信息

  • Stars: 4
  • Watchers: 2
  • Forks: 6
  • 开发语言: PHP

其他信息

  • 授权协议: Unknown
  • 更新时间: 2015-07-20

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固