snide/php-travis-client

dev-master 2014-02-25 10:57 UTC

This package is not auto-updated.

Last update: 2024-10-26 15:09:51 UTC


README

PHP Client for Travis API

Build Status Scrutinizer Quality Score Code Coverage

Installation

Installation by Composer

If you use composer, add travis-client library as a dependency to the composer.json of your application

    "require": {
        ...
        "snide/php-travis-client": "dev-master"
        ...
    },

Usage

Getting Repository info :

<?php

include_once('../vendor/autoload.php');

use Snide\Travis\Client;
use Snide\Travis\Model\Repository;

$client = new Client();
$project = new Repository('pdenis/memetor');
$project = $client->fetchRepository($repository); // Fetch repository & builds
$project = $client->fetchProject($repository, false); // Fetch repository without builds