altrozero/get-address-io-php
Composer 安装命令:
composer require altrozero/get-address-io-php
包简介
Quick interface for using getAddress.io find functionality
README 文档
README
Repo for using GetAddress.io within PHP
Currently only implements find.
Requires an API key!
How to Use
<?php $apiKey = ''; $getAddress = new GetAddress($apiKey); // Get a list of addresses in a postcode $getAddress->find('SR51NA'); // Get detailed information about an address $getAddress->find('SR51NA', 132, false, true, true);
Unit Testing
To setup PHPUnit to test everything you'll need to add your API key.
You can configure your suite by adding a global var of GETADDRESS_API_KEY and calling test/GetAddressTest.php
<php> <var name="GETADDRESS_API_KEY" value="" /> </php> <testsuites> <testsuite name="get-address-io-php test"> <file>test/GetAddressTest.php</file> </testsuite> </testsuites>
To implement
- Parse addresses in to objects before returning
- Add admin functionality
- Long & Lat functionaility
统计信息
- 总下载量: 522
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Unknown
- 更新时间: 2019-04-03