l3l0/php-travis-client
Composer 安装命令:
composer require l3l0/php-travis-client
包简介
PHP implementation for travis API
README 文档
README
It is simple PHP implementation of client using travisci api.
Installation
Download repository then download composer
using wget -nc http://getcomposer.org/composer.phar
So install command will look like php composer.phar install
Usage
Just look at tests :P . Basic example:
<?php require __DIR__ . '/vendor/autoload.php'; $client = new Travis\Client(); $repository = $client->fetchRepository('l3l0/OpenSocialBundle'); echo $repository->getId() . "\n"; echo $repository->getSlug() . "\n"; echo $repository->getLastBuild()->getId() . "\n"; echo $repository->getBuilds()->findOneBy(array('number' => 2))->getId() . "\n"; echo 'Builds:' . "\n"; foreach ($repository->getBuilds() as $build) { echo "\t" . $build->getId() . "\n"; }
统计信息
- 总下载量: 577
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 32
- 点击次数: 0
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2012-03-08