Skip to content

CarlosIO\Jenkins is a Jenkins API written in PHP for PHP 5.3+. It has been born for Dashboard and extreme feedback purposes.

License

Notifications You must be signed in to change notification settings

hubdrop/php-jenkins-api

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CarlosIO\Jenkins

Build Status

CarlosIO\Jenkins is a Jenkins API written in PHP for PHP 5.3+. It has been born for Dashboard and extreme feedback purposes.

At this time, it has support for the following:

  • Integrating different Jenkins information
  • Accessing to:
    • Jobs
    • ChangeSets
    • Changes
    • Authors
    • Properties

Requiring in another project

Using composer:

    "require": {
        "carlosio/jenkins": "dev-master"
    }

Usage

Usage is fairly straightforward,

<?php
    require_once __DIR__ . '/../vendor/autoload.php';

    use CarlosIO\Jenkins\Dashboard;
    use CarlosIO\Jenkins\Source;

    $dashboard = new Dashboard();
    $dashboard->addSource(new Source('http://ci.jenkins-ci.org/view/All/api/json/?depth=2'));
    // Add as many sources as you want
    // ...

    print_r($dashboard->getJobs());

If you need user authentication, you just have to set your source URL like

$dashboard->addSource(new Source('http://user:[email protected]/view/All/api/json/?depth=2'));

About

CarlosIO\Jenkins is a Jenkins API written in PHP for PHP 5.3+. It has been born for Dashboard and extreme feedback purposes.

Resources

License

Stars

Watchers

Forks

Packages

No packages published