mixislv/reamaze-php-sdk
最新稳定版本:v2.2.1
Composer 安装命令:
composer require mixislv/reamaze-php-sdk
包简介
A PHP library for the Reamaze Core API
README 文档
README
A PHP client library for accessing Reamaze API
This PHP library allows you to easily integrate Reamaze with PHP.
Requirements
The following PHP extension is required:
- json
- curl
Installation
Run the following to include this via Composer
composer require "mixislv/reamaze-php-sdk" "^2.0"
Or by adding the following to your composer.json:
"require": {
"mixislv/reamaze-php-sdk": "^2.0"
}
Usage
use mixisLv\Reamaze\Api as ReamazeApi; use mixisLv\Reamaze\Exceptions\ApiException; use mixisLv\Reamaze\Params\Articles\GetParams; $reamaze = new ReamazeApi(REAMAZE_BRAND, REAMAZE_LOGIN, REAMAZE_TOKEN); try { $response = $reamaze->articles->get(new GetParams(['slug' => 'test'])); var_dump($response); } catch (ApiException $e) { var_dump($e->getMessage()); }
Check out examples directory for more usage examples.
统计信息
- 总下载量: 18.97k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-07-20