PHPackages                             totten/process-helper - 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. totten/process-helper

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

totten/process-helper
=====================

Some quick sugar for working with Symfony Process

v1.0.3(6mo ago)125.0k↓12.5%16BSD-2-ClausePHP

Since Aug 9Pushed 6mo ago1 watchersCompare

[ Source](https://github.com/totten/process-helper)[ Packagist](https://packagist.org/packages/totten/process-helper)[ RSS](/packages/totten-process-helper/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependencies (1)Versions (5)Used By (6)

ProcessHelper
=============

[](#processhelper)

This is a quick bit of sugar for working with Symfony Process.

```
use \ProcessHelper\ProcessHelper as PH;
$p = PH::runOk(['ls -la @TGT', 'TGT' => '/home/myuser/Documents/Lots of Stuff']);
print_r(explode("\n", $p->getOutput()));
```

Bits of extra behavior:

- Set env var `DEBUG` to display information about any commands as they are executed. (This is loosely similar to using bash's `set -x`.)
    - `DEBUG=1` - Show basic summary information
    - `DEBUG=2` - Show full, real-time output
- The `run()` and `runOk()` helpers will execute the command while respecting the DEBUG option.
- The `run()` and `runOk()` helpers will automatically cast strings and arrays into `Process` objects. When constructing the `Process`, variables may be escaped and interpolated.
- The `runOk()` helper will assert that the command executed normally. If there's an error, it throws an exception. The resulting exception message will report more details about the failed subcommand.

This doesn't really seem like it should be a standalone project, except that I've found these snippets useful in like 5+ projects...

###  Health Score

46

—

FairBetter than 92% of packages

Maintenance66

Regular maintenance activity

Popularity30

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity62

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

Total

4

Last Release

202d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1336047?v=4)[Tim Otten](/maintainers/totten)[@totten](https://github.com/totten)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/totten-process-helper/health.svg)

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

###  Alternatives

[friendsofphp/php-cs-fixer

A tool to automatically fix PHP code style

13.5k257.0M28.0k](/packages/friendsofphp-php-cs-fixer)[matomo/matomo

Matomo is the leading Free/Libre open analytics platform

21.7k39.6k](/packages/matomo-matomo)[civicrm/civicrm-core

Open source constituent relationship management for non-profits, NGOs and advocacy organizations.

762297.9k53](/packages/civicrm-civicrm-core)[tempest/framework

The PHP framework that gets out of your way.

2.3k37.6k21](/packages/tempest-framework)[phpactor/phpactor

PHP refactoring and intellisense tool for text editors

1.9k17.9k1](/packages/phpactor-phpactor)[illuminate/process

The Illuminate Process package.

44926.6k129](/packages/illuminate-process)

PHPackages © 2026

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