setono/post-nord-php-sdk
最新稳定版本:v2.0.0-alpha.3
Composer 安装命令:
composer require setono/post-nord-php-sdk
包简介
A PHP SDK for the PostNord API
README 文档
README
A PHP SDK for the PostNord API.
Installation
Open a command console, enter your project directory and execute the following command to download the latest stable version of this library:
composer require setono/post-nord-php-sdk
Usage
Here is an example showing you can get the nearest service points.
use Setono\PostNord\Client\Client; use Setono\PostNord\Request\Query\ServicePoints\NearestByAddressQuery; require_once __DIR__ . '/../vendor/autoload.php'; $client = new Client('b09ff56c6a0344768d5afaaec595b2fb'); $servicePoints = $client->servicePoints()->getNearestByAddress(NearestByAddressQuery::create( 'Street name', 'Street number', 'Postal code', 'City', 'Country code', numberOfServicePoints: 10, ));
Framework integration
- There is a Symfony bundle integrating this library: Symfony Post Nord Bundle
统计信息
- 总下载量: 30.88k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 1
- 依赖项目数: 2
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2019-05-20