PHPackages                             decodelabs/systemic - 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. decodelabs/systemic

ActiveLibrary

decodelabs/systemic
===================

Easy access to system and environment info

v0.12.4(7mo ago)223.7k↓100%6MITPHPPHP ^8.4CI passing

Since Sep 26Pushed 5mo ago2 watchersCompare

[ Source](https://github.com/decodelabs/systemic)[ Packagist](https://packagist.org/packages/decodelabs/systemic)[ RSS](/packages/decodelabs-systemic/feed)WikiDiscussions develop Synced 1mo ago

READMEChangelog (10)Dependencies (9)Versions (62)Used By (6)

Systemic
========

[](#systemic)

[![PHP from Packagist](https://camo.githubusercontent.com/6c39cf7c8cbc061ff9ec8d3a080dfe5e61e0454ef1276640a4450f78dad12ad4/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f6465636f64656c6162732f73797374656d69633f7374796c653d666c6174)](https://packagist.org/packages/decodelabs/systemic)[![Latest Version](https://camo.githubusercontent.com/cfbedfe3bdffaf86d93d1e9b26c2820e4a09cb353dfd156177d0343c435558ca/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6465636f64656c6162732f73797374656d69632e7376673f7374796c653d666c6174)](https://packagist.org/packages/decodelabs/systemic)[![Total Downloads](https://camo.githubusercontent.com/1c0b4c11523f13bf1cfe23c44d97986fc5bed81092c4828b1c6a1c6ec0f26503/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6465636f64656c6162732f73797374656d69632e7376673f7374796c653d666c6174)](https://packagist.org/packages/decodelabs/systemic)[![GitHub Workflow Status](https://camo.githubusercontent.com/e870bdce0e9243f4b824c355a864d1696bad1a2c9f10efca9617aac1faee6f53/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6465636f64656c6162732f73797374656d69632f696e746567726174652e796d6c3f6272616e63683d646576656c6f70)](https://github.com/decodelabs/systemic/actions/workflows/integrate.yml)[![PHPStan](https://camo.githubusercontent.com/e25c14ce011edabdd0fbd2e10415b41cc5d66ed11ef3e5b7edd074c5bdd35a2d/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048505374616e2d656e61626c65642d3434434331312e7376673f6c6f6e6743616368653d74727565267374796c653d666c6174)](https://github.com/phpstan/phpstan)[![License](https://camo.githubusercontent.com/072cfa6ce8f055fdc4878b73b3c1ddbb82e9681dc89d7085e83e918990a05e9d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6465636f64656c6162732f73797374656d69633f7374796c653d666c6174)](https://packagist.org/packages/decodelabs/systemic)

### System processes and information at your fingertips

[](#system-processes-and-information-at-your-fingertips)

Systemic offers an easy to use frontend to launching and controlling processes and accessing system information.

---

Installation
------------

[](#installation)

This package requires PHP 8.4 or higher.

Install via composer:

```
composer require decodelabs/systemic
```

Usage
-----

[](#usage)

### Process launching

[](#process-launching)

Launch new processes:

```
use DecodeLabs\Monarch;
use DecodeLabs\Systemic;

$systemic = Monarch::getService(Systemic::class);

$dir = 'path/to/working-directory';

// Launch and capture output of a process
echo $systemic->capture(['ls', '-al'], $dir)->getOutput();

// Launch and capture output of a process with raw string command (not escaped)
echo $systemic->capture('ls -al', $dir)->getOutput();

// Launch and capture output of a script
echo $systemic->capture(['myPhpScript.php'], $dir)->getOutput();

// Launch a background task
$process = $systemic->launch(['make', 'install']);

// Launch a background script
$process = $systemic->launchScript(['myPhpScript.php'], $dir);

// Run a piped pseudo terminal process
$success = $systemic->run(['interactive-app', '--arg1'], $dir);

// Run a piped pseudo terminal script
$success = $systemic->runScript(['myPhpScript.php', '--arg1'], $dir);

// Custom escaped command
$success = $systemic->command(['escaped', 'arguments'])
    ->setWorkingDirectory($dir)
    ->addSignal('SIGSTOP') // Pass SIGSTOP through when caught
    ->setUser('someuser') // Attempt to use sudo to run as user
    ->run();

// Custom raw command with env arguments
$result = $systemic->command('echo ${:VARIABLE} | unescaped-command', [
        'VARIABLE' => 'Hello world'
    ])
    ->setWorkingDirectory($dir)
    ->capture();
```

### OS info

[](#os-info)

Get information about the current OS:

```
// OS info
echo $systemic->os->name; // Linux | Windows | Darwin
echo $systemic->os->platformType; // Unix | Windows
echo $systemic->os->distribution; // eg Ubuntu or High Sierra, etc
echo $systemic->os->version; // System version info
echo $systemic->os->release; // System version number
echo $systemic->os->hostName; // System hostname

// Find binaries on the system
echo $systemic->os->which('php'); // eg /usr/local/bin/php
```

Windows
-------

[](#windows)

Please note, OS and Process support on Windows is currently extremely sketchy - this will be fleshed out soon!

Licensing
---------

[](#licensing)

Systemic is licensed under the MIT License. See [LICENSE](./LICENSE) for the full license text.

###  Health Score

52

—

FairBetter than 96% of packages

Maintenance73

Regular maintenance activity

Popularity26

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity79

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

Recently: every ~10 days

Total

60

Last Release

217d ago

PHP version history (5 changes)v0.5.0PHP ^7.2

v0.7.0PHP ^7.2|^8.0

v0.9.0PHP ^8.0

v0.11.10PHP ^8.1

v0.11.15PHP ^8.4

### Community

Maintainers

![](https://www.gravatar.com/avatar/8a241d64d12b3b5ee94197862ec1ec30b82ed2efa34a0cd7f4c3565a021daddd?d=identicon)[betterthanclay](/maintainers/betterthanclay)

---

Top Contributors

[![betterthanclay](https://avatars.githubusercontent.com/u/1273586?v=4)](https://github.com/betterthanclay "betterthanclay (349 commits)")

---

Tags

phpprocesssystemenvironmentsystem

### Embed Badge

![Health badge](/badges/decodelabs-systemic/health.svg)

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

###  Alternatives

[vlucas/phpdotenv

Loads environment variables from `.env` to `getenv()`, `$\_ENV` and `$\_SERVER` automagically.

13.5k602.4M5.4k](/packages/vlucas-phpdotenv)[phan/phan

A static analyzer for PHP

5.6k11.2M1.1k](/packages/phan-phan)

PHPackages © 2026

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