No description, website, or topics provided.
PHP
Switch branches/tags
Nothing to show
Pull request Compare This branch is 13 commits behind l3l0:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src/Travis
tests/Travis/Test
.gitignore
.travis.yml
LICENSE
README.md
composer.json
composer.lock
phpunit.xml.dist

README.md

PHP Travis Client

It is simple PHP implementation of client using travisci api.

Build Status

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_once 'vendor/.composer/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";
}