addresses-and-postcodes/lookup-php-sdk
Composer 安装命令:
composer require addresses-and-postcodes/lookup-php-sdk
包简介
Addresses and Postcodes - Lookup PHP SDK
关键字:
README 文档
README
About
This is the official PHP SDK for the Addresses and Postcodes API. It provides a way to list coordinates to produce a polygon and such.
Requirements
- PHP >= 7.4
- A HTTP client
- A PSR-7 implementation
- (optional) PHPUnit to run tests.
Install
Via Composer:
$ composer require addresses-and-postcodes/lookup-php-sdk
Basic usage of Addresses-Postcodes-PHP-SDK client
<?php // This file is generated by Composer require_once __DIR__ . '/vendor/autoload.php'; $client = new AddressesAndPostcodes\Lookup\PHP\SDK\Client('API_KEY'); $response = $client->boundaries()->getAreaBoundaryPath('AB');
Tests
WARNING: Before running the tests, please add your api key in
tests/TestCase.php
<?php namespace AddressesAndPostcodes\Lookup\PHP\SDK\Tests; use AddressesAndPostcodes\Lookup\PHP\SDK\Client; abstract class TestCase extends \PHPUnit\Framework\TestCase { protected function client(): Client { return new Client('API_KEY'); } }
To run the tests, go to the root folder of the project in terminal and run the following command:
$ composer tests
Documentation
See the doc directory for more detailed documentation.
License
Licensed under the MIT license, see LICENSE
统计信息
- 总下载量: 7
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 3
- 点击次数: 4
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-08-25