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

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

saggre/process-manager
======================

A library used to call external binaries with PHP

1.0.0(11mo ago)011CC-BY-NC-4.0PHPPHP &gt;=8.1CI passing

Since Jun 10Pushed 9mo agoCompare

[ Source](https://github.com/Saggre/process-manager)[ Packagist](https://packagist.org/packages/saggre/process-manager)[ RSS](/packages/saggre-process-manager/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (1)Versions (2)Used By (0)

Process Manager
===============

[](#process-manager)

[![Codecov](https://camo.githubusercontent.com/c9a849d82fc9a06ac408ba663def56583916b2dd7e558cb3528a8154ee4483bd/68747470733a2f2f696d672e736869656c64732e696f2f636f6465636f762f632f6769746875622f5361676772652f70726f636573732d6d616e61676572)](https://camo.githubusercontent.com/c9a849d82fc9a06ac408ba663def56583916b2dd7e558cb3528a8154ee4483bd/68747470733a2f2f696d672e736869656c64732e696f2f636f6465636f762f632f6769746875622f5361676772652f70726f636573732d6d616e61676572)[![FOSSA Status](https://camo.githubusercontent.com/f6a76057616f915beb1ae6da6f56fe084210ca81eac039b0101e16a27533dbd4/68747470733a2f2f6170702e666f7373612e636f6d2f6170692f70726f6a656374732f6769742532426769746875622e636f6d25324653616767726525324670726f636573732d6d616e616765722e7376673f747970653d736869656c64)](https://app.fossa.com/projects/git%2Bgithub.com%2FSaggre%2Fprocess-manager?ref=badge_shield)

A library used to call external binaries with PHP. It provides a simple interface to run processes, handle their input and output, and manage their execution.

Usage
-----

[](#usage)

### With no output

[](#with-no-output)

```
try{
    $result = (new ProcessService('/usr/bin/node'))
                ->setInput('--version')
                ->run();

    echo $result->getExitCode();
    // 0
} catch (ProcessCreateException|ProcessRunException $e) {
    // TODO: Handle exceptions
}
```

### With buffered output

[](#with-buffered-output)

```
try{
    $stdoutStrategy = new BufferedOutputStrategy();

    $result = (new ProcessService('/usr/bin/node'))
                ->setStdoutStrategy($stdoutStrategy)
                ->setInput('--version')
                ->run();

    echo $stdoutStrategy->getOutput();
    // v22.16.0
} catch (ProcessCreateException|ProcessRunException $e) {
    // TODO: Handle exceptions
}
```

### With streamed output

[](#with-streamed-output)

```
try{
    $stdoutStrategy = new StreamedOutputStrategy(
        fn(string $data) => print $data
        // v22.16.0
    )->setChunkLength(128);

    $result = (new ProcessService('/usr/bin/node'))
                ->setStdoutStrategy($stdoutStrategy)
                ->setInput('--version')
                ->run();
} catch (ProcessCreateException|ProcessRunException $e) {
    // TODO: Handle exceptions
}
```

License
-------

[](#license)

[![FOSSA Status](https://camo.githubusercontent.com/b5800f828bcd33e0c7087d1e6bc522398700996053f7f843d2e05351e8207bb5/68747470733a2f2f6170702e666f7373612e636f6d2f6170692f70726f6a656374732f6769742532426769746875622e636f6d25324653616767726525324670726f636573732d6d616e616765722e7376673f747970653d6c61726765)](https://app.fossa.com/projects/git%2Bgithub.com%2FSaggre%2Fprocess-manager?ref=badge_large)

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance54

Moderate activity, may be stable

Popularity2

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity45

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 92.9% 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

Unknown

Total

1

Last Release

342d ago

### Community

Maintainers

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

---

Top Contributors

[![Saggre](https://avatars.githubusercontent.com/u/13721842?v=4)](https://github.com/Saggre "Saggre (13 commits)")[![fossabot](https://avatars.githubusercontent.com/u/29791463?v=4)](https://github.com/fossabot "fossabot (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[tholu/php-packer

A PHP version of Packer, JavaScript obfuscation library originally created by Dean Edwards

137441.2k5](/packages/tholu-php-packer)[daixianceng/yii2-smser

Yii2 SMS extension

862.9k1](/packages/daixianceng-yii2-smser)

PHPackages © 2026

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