PHPackages                             coyledesign/jenkins-api - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. coyledesign/jenkins-api

ActiveLibrary[API Development](/categories/api)

coyledesign/jenkins-api
=======================

A PHP wrapper around the Jenkins API

0.1-alpha(11y ago)1471GPLPHPPHP &gt;=5.3.0

Since May 22Pushed 11y ago1 watchersCompare

[ Source](https://github.com/coyledesign/jenkins-php-api)[ Packagist](https://packagist.org/packages/coyledesign/jenkins-api)[ RSS](/packages/coyledesign-jenkins-api/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (3)Used By (0)

Jenkins PHP API
===============

[](#jenkins-php-api)

Original code by Jenkins-Khan

Installation
============

[](#installation)

With composer add the following to your composer.json:

`"coyledesign/jenkins-api": "dev-master"`

If your Jenkins need authentication, you need to pass and URL like this : `'http://user:token@host.org:8080'`.

Here is some examples of how to use it :

Get the color of the job
------------------------

[](#get-the-color-of-the-job)

```
    $job = $jenkins->getJob("dev2-pull");
    var_dump($job->getColor());
    //string(4) "blue"
```

Launch a Job
------------

[](#launch-a-job)

```
    $job = $jenkins->launchJob("clone-deploy");
```

List the jobs of a given view
-----------------------------

[](#list-the-jobs-of-a-given-view)

```
    $view = $jenkins->getView('madb_deploy');
    foreach ($view->getJobs() as $job) {
      var_dump($job->getName());
    }
    //string(13) "altlinux-pull"
    //string(8) "dev-pull"
    //string(9) "dev2-pull"
    //string(11) "fedora-pull"
```

List builds and their status
----------------------------

[](#list-builds-and-their-status)

```
    $job = $jenkins->getJob('dev2-pull');
    foreach ($job->getBuilds() as $build) {
      var_dump($build->getNumber());
      var_dump($build->getResult());
    }
    //int(122)
    //string(7) "SUCCESS"
    //int(121)
    //string(7) "FAILURE"
```

Check if Jenkins is available
-----------------------------

[](#check-if-jenkins-is-available)

```
    var_dump($jenkins->isAvailable());
    //bool(true);
```

More information about Jenkins API could be found [here](https://wiki.jenkins-ci.org/display/JENKINS/Remote+access+API)

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity45

Maturing project, gaining track record

 Bus Factor2

2 contributors hold 50%+ of commits

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

4371d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/dc0e147939db4f6f51338b974ebd6ba7e10c2aa3988a9d98ad1106d5bd730570?d=identicon)[kevincoyle](/maintainers/kevincoyle)

---

Top Contributors

[![srogier](https://avatars.githubusercontent.com/u/814069?v=4)](https://github.com/srogier "srogier (22 commits)")[![agallou](https://avatars.githubusercontent.com/u/320372?v=4)](https://github.com/agallou "agallou (20 commits)")[![kevin-coyle](https://avatars.githubusercontent.com/u/1467585?v=4)](https://github.com/kevin-coyle "kevin-coyle (13 commits)")[![KuiKui](https://avatars.githubusercontent.com/u/748924?v=4)](https://github.com/KuiKui "KuiKui (1 commits)")

### Embed Badge

![Health badge](/badges/coyledesign-jenkins-api/health.svg)

```
[![Health](https://phpackages.com/badges/coyledesign-jenkins-api/health.svg)](https://phpackages.com/packages/coyledesign-jenkins-api)
```

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M475](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M270](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

263103.1M454](/packages/google-gax)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
