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(10mo ago)012MITPHPPHP ^8.0CI failing

Since Jun 16Pushed 10mo 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 3d 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

36

—

LowBetter than 82% of packages

Maintenance55

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

300d 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://www.gravatar.com/avatar/0eef0320768b8d176b9014442390bfa3bfec9369cba3b9e663a66dac57ac0084?d=identicon)[mikeshiyan](/maintainers/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

[titasgailius/terminal

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

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

Automatically restart PHP application once the source code changes

394137.8k4](/packages/seregazhuk-php-watcher)[alecrabbit/php-console-spinner

Extremely flexible spinner for \[async\] php cli applications

24032.0k2](/packages/alecrabbit-php-console-spinner)[dawood/phpchromepdf

A slim PHP wrapper around google-chrome to convert url to pdf or to take screenshots , easy to use and clean OOP interface

14980.5k](/packages/dawood-phpchromepdf)[ptlis/shell-command

A basic wrapper around execution of shell commands.

2256.0k2](/packages/ptlis-shell-command)[dawood/phpscreenrecorder

A slim PHP wrapper around ffmpeg to record screen,best for recording your acceptance test using selenium, easy to use and clean OOP interface

501.5k](/packages/dawood-phpscreenrecorder)

PHPackages © 2026

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