PHPackages                             lshepstone/php-proc - 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. lshepstone/php-proc

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

lshepstone/php-proc
===================

PHP proc\_\* library

05.8kPHP

Since Jan 25Pushed 13y ago1 watchersCompare

[ Source](https://github.com/lshepstone/php-proc)[ Packagist](https://packagist.org/packages/lshepstone/php-proc)[ RSS](/packages/lshepstone-php-proc/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

PhpProc
=======

[](#phpproc)

Basic wrapper for the PHP proc\_\* functions (blocking, single-thread, limited Windows support).

[![Build Status](https://camo.githubusercontent.com/1a2462593ecee467d60e221326d3e972d7bb6cfe4af0afbeedc077d27892a2c7/68747470733a2f2f7472617669732d63692e6f72672f6c7368657073746f6e652f7068702d70726f632e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/lshepstone/php-proc)

```
use \PhpProc\Process;

$process = new Process();
$result = $process
    ->setCommand("/usr/bin/php -r \"echo getenv('USER');\"");
    ->setWorkingDirectory(__DIR__);
    ->setEnvironmentVars(array(
        'PATH' => getenv('PATH'),
        'SHELL' => getenv('SHELL'),
        'USER' => 'developer'))
    ->execute();

echo 'Status: ' . $result->getStatus() . PHP_EOL;
if ($result->hasErrors()) {
    echo 'Errors: ' . $result->getStdErrContents();
} else {
    echo 'Output: ' . $result->getStdOutContents();
}
```

```
Status: 0
Output: developer

```

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/2cf53d57d5d2c326195b8247482d03a5166f8f04c7aed0529d89e51abe0167b0?d=identicon)[lshepstone](/maintainers/lshepstone)

---

Top Contributors

[![lshepstone](https://avatars.githubusercontent.com/u/1371053?v=4)](https://github.com/lshepstone "lshepstone (25 commits)")

### Embed Badge

![Health badge](/badges/lshepstone-php-proc/health.svg)

```
[![Health](https://phpackages.com/badges/lshepstone-php-proc/health.svg)](https://phpackages.com/packages/lshepstone-php-proc)
```

PHPackages © 2026

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