vleks/bol-plaza-sdk
最新稳定版本:1.1.1
Composer 安装命令:
composer require vleks/bol-plaza-sdk
包简介
A PHP client SDK for the Bol.com Plaza API
README 文档
README
Installation
It's recommended that you use Composer to install the SDK.
composer require vleks/bol-plaza-sdk
This will install the Bol.com Plaza SDK.
PHP 5.6 or newer is required.
Usage
Create an index.php file with the following contents:
<?php use Vleks\BolPlazaSDK\Client; use Vleks\BolPlazaSDK\ClientException; require 'vendor/autoload.php'; $publicKey = '-- YOUR PUBLIC KEY --'; $privateKey = '-- YOUR PRIVATE KEY --'; $bolPlazaClient = new Client($publicKey, $privateKey); $bolPlazaClient->setTestMode(true); try { $orders = $bolPlazaClient->getOrders(); var_dump($orders); } catch (ClientException $clientException) { echo 'An error occurred: ' . $clientException->getMessage(); }
See the contents of the examples directory for more information.
Coverage
Not every Bol.com Plaza API endpoint is covered, check out the table for more details
Tests
To execute the test suite, you'll need PHPUnit.
$ phpunit
License
The Bol.com Plaza SDK for PHP is licensed under the MIT licence.
See the license file for more information.
统计信息
- 总下载量: 13.11k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2017-09-29