PHPackages                             chenjiesuper/ansible-php - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. chenjiesuper/ansible-php

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

chenjiesuper/ansible-php
========================

使用PHP 执行ansible shell命令的小工具

v0.5(9y ago)229Apache-2.0PHPPHP &gt;=5.3.0

Since Jan 15Pushed 9y ago1 watchersCompare

[ Source](https://github.com/chenjiesuper/ansible-php)[ Packagist](https://packagist.org/packages/chenjiesuper/ansible-php)[ RSS](/packages/chenjiesuper-ansible-php/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependenciesVersions (6)Used By (0)

描述
==

[](#描述)

使用PHP 执行ansible shell命令的小工具

安装前
---

[](#安装前)

请确保已经安装ansible并配置了相关的中心机和客户机的ssh\_auth,ssh\_config（在中心机配置客户机的别名或机器组） 并将中心机PHP配置文件php.ini中disable\_functions中值删除后重启PHP-FPM

安装
--

[](#安装)

```
composer require chenjiesuper/ansible-php

```

使用说明
----

[](#使用说明)

```
include __DIR__ . '/vendor/autoload.php';

use Jay\Ansible\Command;

$name = 'dev';  //中心机配置的客户机别名或机器组名
$binPath = '/usr/bin/ansible';  //中心机ansible 命令绝对路径
$test = new Command($name);
//$test = new Command($name, $binPath); //$binPaht 默认值/usr/bin/ansible，可不传
$ls = $test->run('ls'); //执行具体shell命令
var_dump($ls);
```

###  Health Score

25

—

LowBetter than 36% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity52

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

Every ~0 days

Total

5

Last Release

3453d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3476fef090108ab1cec971632a283200652fbb8e00b14ddc96452f1564403cbf?d=identicon)[chenjie](/maintainers/chenjie)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/chenjiesuper-ansible-php/health.svg)

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

###  Alternatives

[xeeeveee/sudoku

PHP sudoku logic library - Generate and solve sudoku puzzles

2715.1k](/packages/xeeeveee-sudoku)

PHPackages © 2026

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