https://github.com/l3l0/php-travis-client
https://github.com/l3l0/php-travis-client
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/l3l0/php-travis-client
- Owner: l3l0
- License: mit
- Created: 2012-03-07T22:40:04.000Z (almost 13 years ago)
- Default Branch: master
- Last Pushed: 2021-10-12T08:07:17.000Z (over 3 years ago)
- Last Synced: 2024-10-14T06:25:23.667Z (4 months ago)
- Language: PHP
- Homepage:
- Size: 138 KB
- Stars: 32
- Watchers: 4
- Forks: 12
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# PHP Travis Client
It is simple PHP implementation of client using [travisci api](http://about.travis-ci.org/docs/dev/api/).
[](http://travis-ci.org/l3l0/php-travis-client)
## Installation
Download repository then [download composer](http://getcomposer.org/doc/01-basic-usage)
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
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";
}
```