PHPackages                             tetreum/process-monitor - 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. [Logging &amp; Monitoring](/categories/logging)
4. /
5. tetreum/process-monitor

ActiveLibrary[Logging &amp; Monitoring](/categories/logging)

tetreum/process-monitor
=======================

A system process monitor &amp; manager for PHP

v1.3(5y ago)1321.9k↓44.6%6MITPHP

Since Mar 9Pushed 5y ago2 watchersCompare

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

READMEChangelog (4)DependenciesVersions (5)Used By (0)

ProcessMonitor [![License](https://camo.githubusercontent.com/f48f8d6cf609f5b181b9c3218a85175fe8a5809c7ea400347f39697a5d55065d/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e7376673f7374796c653d666c6174)](LICENSE) [![Issues](https://camo.githubusercontent.com/6b33a0c850e9ca732b5997e0efa1fb2184e09f85915155d9ab3f030033980481/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732f7465747265756d2f50726f636573734d6f6e69746f722e7376673f7374796c653d666c6174)](https://github.com/tetreum/ProcessMonitor/issues)
==========================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================

[](#processmonitor--)

Monitor &amp; manage system processes in PHP for Linux &amp; Windows(basic support).

#### Install

[](#install)

```
composer require tetreum/process-monitor "1.*"

```

#### Examples

[](#examples)

To see all available process commands &amp; properties, check:

##### See process status

[](#see-process-status)

```
use ProcessMonitor\ProcessMonitor;

$monitor = new ProcessMonitor();
$process = $monitor->search("apache");

if (!$process) {
    exit;
}
    echo "Apache (PID: " . $process->pid . ") is using " . $process->cpu . "% CPU and " . $process->ram . " RAM";
```

##### Kill a process

[](#kill-a-process)

```
use ProcessMonitor\ProcessMonitor;

$monitor = new ProcessMonitor();
$process = $monitor->search("rust-server");

if (!$process) {
    exit;
}

if ($process->defunct) {
    $process->kill();
    // or you can just kill it's childs
    // $process->killChilds();
}
```

##### Search muliple processes at the same time

[](#search-muliple-processes-at-the-same-time)

```
use ProcessMonitor\ProcessMonitor;

$monitor = new ProcessMonitor();
$processList = $monitor->searchMultiple("rust-server|nginx");
```

You can also get a summary of the top consuming processes of this search

```
use ProcessMonitor\ProcessMonitor;

$monitor = new ProcessMonitor();
$result = $monitor->searchMultiple("rust-server|nginx", true);

// $result->processes contains the process list
// $result->summary:
// $result->summary["cpu"] // the most cpu consuming process
// $result->summary["defunct"] // returns any defunct process
/*
    [summary] => Array
        (
            [cpu] => ProcessMonitor\Process Object
                (
                    [user] => root
                    [pid] => 1230
                    [cpu] => 5
                    [ram] => 0.1
                    [vsz] => 15624
                    [rss] => 1412
                    [tty] => ?
                    [stat] => Ss
                    [start] => Apr13
                    [time] => 0:00
                    [command] => nginx: master process /usr/sbin/nginx
                    [defunct] =>
                    [debug:protected] =>
                )

            [defunct] =>
        )
*/
```

Troubleshooting
---------------

[](#troubleshooting)

- I get a "Fatal error: Class 'COM' not found" in Windows:

In `php.ini` add:

```
[PHP_COM_DOTNET]
extension=php_com_dotnet.dll

```

- I don't know where my php.ini file is:

`php --ini`

###  Health Score

38

—

LowBetter than 85% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity36

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity66

Established project with proven stability

 Bus Factor1

Top contributor holds 94.4% 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 ~604 days

Total

4

Last Release

1907d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/71266106071cb2021cd95755a704956b877d6f759ed8708d864ee20e41faf5bb?d=identicon)[tetreum](/maintainers/tetreum)

---

Top Contributors

[![tetreum](https://avatars.githubusercontent.com/u/1708730?v=4)](https://github.com/tetreum "tetreum (17 commits)")[![marciuz](https://avatars.githubusercontent.com/u/1354643?v=4)](https://github.com/marciuz "marciuz (1 commits)")

---

Tags

processmonitor

### Embed Badge

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

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

###  Alternatives

[liip/monitor-bundle

Liip Monitor Bundle

4728.7M16](/packages/liip-monitor-bundle)[analog/analog

Fast, flexible, easy PSR-3-compatible PHP logging package with dozens of handlers.

3451.5M24](/packages/analog-analog)[liuggio/statsd-client-bundle

Provides a statsd client and simple ready-to-use support for #Symfony2 Application

164730.7k](/packages/liuggio-statsd-client-bundle)[guanguans/laravel-exception-notify

Monitor exception and report to the notification channels(Log、Mail、AnPush、Bark、Chanify、DingTalk、Discord、Gitter、GoogleChat、IGot、Lark、Mattermost、MicrosoftTeams、NowPush、Ntfy、Push、Pushback、PushBullet、PushDeer、PushMe、Pushover、PushPlus、QQ、RocketChat、ServerChan、ShowdocPush、SimplePush、Slack、Telegram、WeWork、WPush、XiZhi、YiFengChuanHua、ZohoCliq、ZohoCliqWebHook、Zulip).

14642.7k1](/packages/guanguans-laravel-exception-notify)[putyourlightson/craft-sherlock

Security scanner and monitor to keep your site and CMS secure.

1657.0k2](/packages/putyourlightson-craft-sherlock)[rigor789/airbrake-laravel

Laravel package for the Airbrake API, which supports Errbit

1636.5k](/packages/rigor789-airbrake-laravel)

PHPackages © 2026

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