PHPackages                             shiyun/php-jenkins - 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. [HTTP &amp; Networking](/categories/http)
4. /
5. shiyun/php-jenkins

ActiveLibrary[HTTP &amp; Networking](/categories/http)

shiyun/php-jenkins
==================

Jenkins PHP api

1.0.1(3y ago)00MITPHPPHP &gt;=7.2

Since Jul 13Pushed 1y agoCompare

[ Source](https://github.com/10yun/php-jenkins)[ Packagist](https://packagist.org/packages/shiyun/php-jenkins)[ Docs](https://github.com/10yun/php-jenkins)[ RSS](/packages/shiyun-php-jenkins/feed)WikiDiscussions main Synced today

READMEChangelogDependencies (3)Versions (2)Used By (0)

php-jenkins
===========

[](#php-jenkins)

**简要**
php-jenkins 是PHP语言编写的 Jenkins REST API 的工具库，旨在提供一种更方便的方式来控制 Jenkins 服务器。它提供了许多便利的功能、更高级 API。

**编码标准**
This projects follows PSR-0, PSR-1, PSR-2, PSR-4

快速安装
----

[](#快速安装)

```
composer require shiyun/php-jenkins
```

快速使用
----

[](#快速使用)

```
use shiyunJK/Jenkins;

$config = [
    'username' => 'jenkins User ID',
    'password' => 'Jenkins API token'
];

$jenkins = new Jenkins('http://localhost:8080', $config);
```

api参考
-----

[](#api参考)

php-jenkins 主要实现了以下功能：

**基础 base**

功能英文手册获取版本信息Get Jenkins master version information[参考](./docs/base/index.md)获取插件信息Get Jenkins plugin information[参考](./docs/base/index.md)安装插件Install plugins[参考](./docs/base/index.md)取消关机Cancel server shutdown mode (cancel quiet down)**视图 views**

功能英文手册创建试图Create views[参考](./docs/view/index.md)删除试图Delete views[参考](./docs/view/index.md)重配试图Reconfig views[参考](./docs/view/index.md)获取工作空间wipeoutJobWorkspace[参考](./docs/job/index.md)**任务 job**

功能方法手册判断任务是否存在jobExists[参考](./docs/job/index.md)获取任务信息getJobInfo[参考](./docs/job/index.md)重命名renameJob[参考](./docs/job/index.md)创建任务createJob[参考](./docs/job/index.md)复制已有任务copyJob[参考](./docs/job/index.md)删除任务deleteJob[参考](./docs/job/index.md)启用任务enableJob[参考](./docs/job/index.md)禁用任务disableJob[参考](./docs/job/index.md)获取配置getJobConfig[参考](./docs/job/index.md)修改配置reconfigJob[参考](./docs/job/index.md)**构建 build**

功能英文手册开始任务构建Start a build on a job[参考](./docs/build/index.md)删除构建Delete Builds[参考](./docs/build/index.md)构建列表List running builds[参考](./docs/build/index.md)创建节点Create nodes[参考](./docs/build/index.md)启用Enable nodes[参考](./docs/build/index.md)禁用节点Disable nodes[参考](./docs/build/index.md)获取节点信息Get information on nodes[参考](./docs/build/index.md)**其他**

- Put server in shutdown mode (quiet down/safe exit/exit)
- Create/Delete/Update folders
- Get builded last git version information

更新日志
----

[](#更新日志)

[更新日期](./docs/changelog.md)

加入我们
----

[](#加入我们)

qq群 - 87208295

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance30

Infrequent updates — may be unmaintained

Popularity0

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity43

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

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

1452d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1152483?v=4)[shiyun](/maintainers/shiyun)[@shiyun](https://github.com/shiyun)

---

Top Contributors

[![ctocode](https://avatars.githubusercontent.com/u/35675441?v=4)](https://github.com/ctocode "ctocode (20 commits)")

---

Tags

apirestjenkinscicdjenkins-php

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/shiyun-php-jenkins/health.svg)

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

###  Alternatives

[xeroapi/xero-php-oauth2

Xero official PHP SDK for oAuth2 generated with OpenAPI spec 3

1054.7M18](/packages/xeroapi-xero-php-oauth2)[onesignal/onesignal-php-api

A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com

34216.9k2](/packages/onesignal-onesignal-php-api)[eslazarev/wildberries-sdk

Wildberries OpenAPI clients (generated).

273.0k](/packages/eslazarev-wildberries-sdk)[dreamfactory/df-core

DreamFactory(tm) Core Components

1652.1k38](/packages/dreamfactory-df-core)[zenditplatform/zendit-php-sdk

PHP client for Zendit API

1194.4k](/packages/zenditplatform-zendit-php-sdk)

PHPackages © 2026

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