2017 © Pedro Peláez
 

library php-travis-client

PHP implementation for travis API

image

l3l0/php-travis-client

PHP implementation for travis API

  • Thursday, July 30, 2015
  • by l3l0
  • Repository
  • 4 Watchers
  • 32 Stars
  • 551 Installations
  • PHP
  • 2 Dependents
  • 0 Suggesters
  • 12 Forks
  • 7 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

PHP Travis Client

It is simple PHP implementation of client using travisci api., (*1)

Build Status, (*2)

Installation

Download repository then download composer using wget -nc http://getcomposer.org/composer.phar, (*3)

So install command will look like php composer.phar install, (*4)

Usage

Just look at tests :P . Basic example:, (*5)

<?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";
}

The Versions

30/07 2015

dev-master

9999999-dev http://github.com/l3l0/php-travis-client

PHP implementation for travis API

  Sources   Download

MIT

The Requires

 

test ci travis