PHPackages                             shiyan/process-builder - 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. [CLI &amp; Console](/categories/cli)
4. /
5. shiyan/process-builder

ActiveLibrary[CLI &amp; Console](/categories/cli)

shiyan/process-builder
======================

Builds command lines for symfony/process using magic methods.

1.1.1(11mo ago)012MITPHPPHP ^8.0CI failing

Since Jun 16Pushed 11mo agoCompare

[ Source](https://github.com/mikeshiyan/process-builder)[ Packagist](https://packagist.org/packages/shiyan/process-builder)[ RSS](/packages/shiyan-process-builder/feed)WikiDiscussions master Synced 3w ago

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

Process Builder
===============

[](#process-builder)

Builds command lines for symfony/process using magic methods.

Best suited for use as a [Composer](https://getcomposer.org) library.

Requirements
------------

[](#requirements)

- PHP ≥ 8.0
- [symfony/process](https://github.com/symfony/process) ≥ 5

Installation
------------

[](#installation)

To add this library to your Composer project:

```
composer require shiyan/process-builder

```

Usage examples
--------------

[](#usage-examples)

Using the `ProcessBuilder` class:

```
use Shiyan\ProcessBuilder\ProcessBuilder;

$ls = new ProcessBuilder(app: 'ls', cwd: '~');
print $ls('-la'); // Prints the command output.

$ls->chDir('../'); // Changes the working directory, not the command argument.
print $ls('-la');

```

Using a class which extends the `BaseProcessBuilder`:

```
use Shiyan\ProcessBuilder\Example\Git;

$git = new Git('/var/www');

if ($git->status('-z') != '') {
  $git->add('--all');
  $git->commit('-m', 'Some changes');
  $git->push('origin', 'master');
}

```

By default, an underlying process runs automatically. This behavior can be changed:

```
use Shiyan\ProcessBuilder\ProcessBuilder;

$ls = new ProcessBuilder('ls');
$ls->setAutoRun(FALSE);
$process = $ls('-la');

```

###  Health Score

35

—

LowBetter than 77% of packages

Maintenance51

Moderate activity, may be stable

Popularity5

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity66

Established project with proven stability

 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 ~1112 days

Total

3

Last Release

348d ago

PHP version history (3 changes)1.0.0PHP ^7.1

1.1.0PHP ^7.4 || ^8

1.1.1PHP ^8.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/3637657?v=4)[Mike Shiyan](/maintainers/mikeshiyan)[@mikeshiyan](https://github.com/mikeshiyan)

---

Top Contributors

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

---

Tags

cmdcomposerexecoopphpprocessshellphpshellprocessexecOOPcmd

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/shiyan-process-builder/health.svg)

```
[![Health](https://phpackages.com/badges/shiyan-process-builder/health.svg)](https://phpackages.com/packages/shiyan-process-builder)
```

###  Alternatives

[matomo/matomo

Matomo is the leading Free/Libre open analytics platform

21.7k38.9k](/packages/matomo-matomo)[illuminate/console

The Illuminate Console package.

13046.0M6.4k](/packages/illuminate-console)[jolicode/castor

A lightweight and modern task runner. Automate everything. In PHP.

54642.4k4](/packages/jolicode-castor)[titasgailius/terminal

Terminal is an Elegent wrapper around Symfony's Process component.

513349.5k11](/packages/titasgailius-terminal)[seregazhuk/php-watcher

Automatically restart PHP application once the source code changes

395138.9k6](/packages/seregazhuk-php-watcher)[ptlis/shell-command

A basic wrapper around execution of shell commands.

2256.8k2](/packages/ptlis-shell-command)

PHPackages © 2026

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