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

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

task/process
============

Process plugin for Task

v0.3.1(12y ago)23.0k12MITPHP

Since Apr 23Pushed 12y ago2 watchersCompare

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

READMEChangelogDependencies (7)Versions (7)Used By (2)

task/process
============

[](#taskprocess)

[![Build Status](https://camo.githubusercontent.com/2909d26d1656f9ff6669222da78822f6ac1d4783e135e48c919dff0c79bfd5e1/68747470733a2f2f7472617669732d63692e6f72672f7461736b7068702f70726f636573732e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/taskphp/process)[![Coverage Status](https://camo.githubusercontent.com/71fba6d67ebf4807033cf47005f25379a807c94bc067f8ebfe2274eb8e39e607/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f7461736b7068702f70726f636573732f62616467652e706e673f6272616e63683d6d6173746572)](https://coveralls.io/r/taskphp/process?branch=master)

Installation
============

[](#installation)

Install via Composer:

```
...
    "require-dev": {
        "task/process": "~0.2"
    }
...
```

Usage
=====

[](#usage)

Inject into the project container:

```
use Task\Plugin\ProcessPlugin;

$project->inject(function ($container) {
    $container['ps'] = new ProcessPlugin;
});

$project->addTask('whoami', ['ps', function ($ps) {
    $ps->run('whoami')->pipe($this->getOutput());
}]);
```

API
===

[](#api)

```
run($command, array $args = [], $cwd = null, array $env = [], OutputInterface $output = null)
```

`$command` - The command run:

```
run('whoami');
```

`array $args = []` - An array of command line arguments:

```
run('ls', ['-la']);
```

`$cwd = null` - The directory to execute the command in:

```
run('du', ['-hs'], '/path/to/my/project');
```

`$env` - An array of environment variables:

```
run('myscript', [], null, ['DEBUG' => 1]);
```

```
build($command, array $args = [])
```

Accepts the same `$command` and `$args` arguments as run, but returns an instance of `Task\Plugin\Process\ProcessBuilder`, which thinly wraps Symfony's `ProcessBuilder`, providing an OO interface to confguration a command.

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

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

Total

6

Last Release

4397d ago

### Community

Maintainers

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

---

Top Contributors

[![mbfisher](https://avatars.githubusercontent.com/u/1162326?v=4)](https://github.com/mbfisher "mbfisher (10 commits)")

### Embed Badge

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

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

###  Alternatives

[symplify/monorepo-builder

Not only Composer tools to build a Monorepo.

5205.3M82](/packages/symplify-monorepo-builder)[spatie/typescript-transformer

This is my package typescript-transformer

3706.5M16](/packages/spatie-typescript-transformer)[civicrm/civicrm-core

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

728272.9k20](/packages/civicrm-civicrm-core)[shivas/versioning-bundle

Symfony application versioning, simple console command to manage version (with providers e.g. git tag) of your application using Semantic Versioning 2.0.0 recommendations

1121.2M1](/packages/shivas-versioning-bundle)[eclipxe/cfdiutils

PHP Common utilities for Mexican CFDI 3.2, 3.3 &amp; 4.0

141129.9k6](/packages/eclipxe-cfdiutils)[shyim/danger-php

Port of danger to PHP

8544.9k](/packages/shyim-danger-php)

PHPackages © 2026

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