snide/php-magnum-client
Composer 安装命令:
composer require snide/php-magnum-client
包简介
Magnum CI API PHP Client
README 文档
README
A simple PHP client for Magnum CI API
Installation
Installation by Composer
If you use composer, add php-magnum-client library as a dependency to the composer.json of your application
"require": { ... "snide/php-magnum-client": "dev-master" ... },
Usage
Getting Project info :
<?php include_once('../vendor/autoload.php'); use Snide\Magnum\Client; use Snide\Magnum\Model\User; use Snide\Magnum\Model\Project; $client = new Client(); $project = new Project(); $project->setApiToken('YourProjectAPIKey'); $project = $client->fetchProject($project); // Fetch project & builds $project = $client->fetchProject($project, false); // Fetch project without builds
Getting User info :
<?php include_once('../vendor/autoload.php'); use Snide\Magnum\Client; use Snide\Magnum\Model\User; use Snide\Magnum\Model\Project; $client = new Client(); $user = new User(); $user->setApiToken('YourProjectAPIKey'); $user = $client->fetchProject($user); // Fetch user profile
That's all!
统计信息
- 总下载量: 5
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2014-02-17