wickedreports/php-sdk
最新稳定版本:1.7.0
Composer 安装命令:
composer require wickedreports/php-sdk
包简介
PHP SDK for WickedReports
README 文档
README
Documentation
You can find current API documentation in this doc.
Install
Using the composer CLI:
composer require wickedreports/php-sdk Or manually add it to your composer.json:
{ "require": { "wickedreports/php-sdk": "1.5.*" } } Authentication
To use API SDK, you should have your own API key.
$api = new \WickedReports\WickedReports($yourApiKey); $api->addOrders($orders);
Examples
You can see list of usage examples in examples/example.php file.
Dates
DateTime objects are used instead of a DateTime string where the date(time) is a parameter in the method.
$datetime = new \DateTime('now', new \DateTimeZone('America/New_York'));
As other way, you can use simple date-time string with timezone property set.
[ 'CreateDate' => '2017-08-01 00:05:01', 'timezone' => 'EST' ]
You can see list of supported timezones on PHP.net website.
You have to use one of these ways to provide date time, otherwise you will get error or wrong date saved into our DB.
Provided date-time string will be automatically converted to UTC timezone, as it requires our API documentation.
Testing
$ phpunit
License
The MIT License (MIT). Please see License File for more information.
统计信息
- 总下载量: 51.07k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 1
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-01-04