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

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

appzz/process
=============

Process via pipes

2.0.6(2y ago)01043MITPHPPHP &gt;5.3.3

Since May 7Pushed 2y ago1 watchersCompare

[ Source](https://github.com/a-pp-zz/process)[ Packagist](https://packagist.org/packages/appzz/process)[ Docs](https://github.com/a-pp-zz/process.git)[ RSS](/packages/appzz-process/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependencies (1)Versions (10)Used By (3)

Process v2.0
============

[](#process-v20)

Run cli-process in background and get output from pipes or files Works on \*nix &amp; windows (with limitations)

Install
-------

[](#install)

```
composer require appzz/process
```

Basic usage
-----------

[](#basic-usage)

```
use \AppZz\CLI\Process;

chdir(realpath(__DIR__));
require_once 'vendor/autoload.php';

$cmd = 'ping google.com';

//On windows need specify pipe!!! On *nix systems you can get output from all pipes
$pr = Process::factory ($cmd, Process::STDOUT);

//Trigger for all events
$pr->trigger('all', function ($data) {
	var_dump ($data);
	echo PHP_EOL;
});

//Or you can specify separated triggers

$pr->trigger('running', function ($data) {
	//get current output
  var_dump ($data[Process::STDOUT]);
  var_dump ($data[Process::STDERR]);
	echo PHP_EOL;
});

$pr->trigger('start', function () {
	echo 'Start!!!';
	echo PHP_EOL;
});

$pr->trigger('finished', function () {
	echo 'Finished!!!';
	echo PHP_EOL;
});

//Get exitcode of process, 0 on success
$exitcode = $pr->run(true);

//Or run and go away
$pr->run(false);

//If you don't want use triggers, you can use text files
$pr->output_file('./out.txt', Process::STDOUT, false);
$pr->output_file('./err.txt', Process::STDERR, false);

//Get full output
$std_out = $pr->get_log(Process::STDOUT);
$err_log = $st->get_log(Process::STDERR);

//Or
$std_out = $pr->get_output()
$err_log = $st->get_error();
```

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity64

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

Recently: every ~2 days

Total

9

Last Release

994d ago

Major Versions

1.0.1 → 2.0.02023-08-01

### Community

Maintainers

![](https://www.gravatar.com/avatar/ed80e5fea7f08c36b76e87f1395c71d245f97362d706a77aa2ade992bd2976b8?d=identicon)[CoolSwitcher](/maintainers/CoolSwitcher)

---

Top Contributors

[![coolswitcher](https://avatars.githubusercontent.com/u/646663?v=4)](https://github.com/coolswitcher "coolswitcher (19 commits)")

---

Tags

process

### Embed Badge

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

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

###  Alternatives

[react/child-process

Event-driven library for executing child processes with ReactPHP.

34076.1M136](/packages/react-child-process)[cocur/background-process

Start processes in the background that continue running when the PHP process exists.

2971.9M12](/packages/cocur-background-process)[phpmentors/workflower

A BPMN 2.0 workflow engine for PHP

70652.9k4](/packages/phpmentors-workflower)[duncan3dc/fork-helper

Simple class to fork processes in PHP and allow multi-threading

73548.0k4](/packages/duncan3dc-fork-helper)[arara/process

Provides a better API to work with processes on Unix-like systems

16861.7k2](/packages/arara-process)[metabor/statemachine

Statemachine in PHP 5.3

103150.7k2](/packages/metabor-statemachine)

PHPackages © 2026

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