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

ActiveLibrary

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

Some quick sugar for working with Symfony Process

v1.0.3(3mo ago)121.5k↓27.6%16BSD-2-ClausePHP

Since Aug 9Pushed 3mo 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 1mo 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

49

—

FairBetter than 95% of packages

Maintenance79

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

111d 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

[spatie/laravel-health

Monitor the health of a Laravel application

86910.0M83](/packages/spatie-laravel-health)[illuminate/console

The Illuminate Console package.

12944.1M5.1k](/packages/illuminate-console)[temporal/sdk

Temporal SDK

4002.2M18](/packages/temporal-sdk)[pressbooks/pressbooks

Pressbooks is an open source book publishing tool built on a WordPress multisite platform. Pressbooks outputs books in multiple formats, including PDF, EPUB, web, and a variety of XML flavours, using a theming/templating system, driven by CSS.

44643.1k1](/packages/pressbooks-pressbooks)[illuminate/process

The Illuminate Process package.

44699.5k65](/packages/illuminate-process)[statamic/cli

Statamic CLI Tool

7587.7k](/packages/statamic-cli)

PHPackages © 2026

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