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(5mo ago)124.1k↓21.8%16BSD-2-ClausePHP

Since Aug 9Pushed 5mo 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 2d 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

48

—

FairBetter than 93% of packages

Maintenance72

Regular maintenance activity

Popularity29

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

157d 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.5k251.2M25.2k](/packages/friendsofphp-php-cs-fixer)[matomo/matomo

Matomo is the leading Free/Libre open analytics platform

21.7k38.9k](/packages/matomo-matomo)[civicrm/civicrm-core

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

751291.4k43](/packages/civicrm-civicrm-core)[spatie/laravel-export

Create a static site bundle from a Laravel app

674146.0k6](/packages/spatie-laravel-export)[tempest/framework

The PHP framework that gets out of your way.

2.2k34.4k15](/packages/tempest-framework)[phpactor/phpactor

PHP refactoring and intellisense tool for text editors

1.9k17.1k1](/packages/phpactor-phpactor)

PHPackages © 2026

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