PHPackages                             devium/processes - 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. devium/processes

ActiveLibrary

devium/processes
================

This package is used to get a list of running processes on Windows or Unix-like systems, even Darwin

1.1.1(1y ago)2427.5k↑82.7%2MITPHPPHP ^7.3|^8.0CI passing

Since Apr 18Pushed 1y agoCompare

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

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

Stand With Ukraine 🇺🇦
=====================

[](#stand-with-ukraine-)

[![Stand With Ukraine](https://raw.githubusercontent.com/vshymanskyy/StandWithUkraine/main/banner-direct-single.svg)](https://vshymanskyy.github.io/StandWithUkraine/)

---

devium/processes
================

[](#deviumprocesses)

[![Build status](https://camo.githubusercontent.com/cb130efeccf952247cd2fc5e1ec0d7fb3e5463210e1c45178b1830b15c079853/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f76616e6f64657669756d2f70726f6365737365732f63692e79616d6c)](https://camo.githubusercontent.com/cb130efeccf952247cd2fc5e1ec0d7fb3e5463210e1c45178b1830b15c079853/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f76616e6f64657669756d2f70726f6365737365732f63692e79616d6c)[![Latest Version](https://camo.githubusercontent.com/d7e227e9184a48ae85c1e499061e8f09d0436bfd113431d516ab5048b3a9a3e4/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f64657669756d2f70726f636573736573)](https://camo.githubusercontent.com/d7e227e9184a48ae85c1e499061e8f09d0436bfd113431d516ab5048b3a9a3e4/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f64657669756d2f70726f636573736573)[![License](https://camo.githubusercontent.com/4c71a610f9ae7bae0d9f0ead21d1f7c8e30117b009dd3f6c1ee1763f63e1b624/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f64657669756d2f70726f636573736573)](https://camo.githubusercontent.com/4c71a610f9ae7bae0d9f0ead21d1f7c8e30117b009dd3f6c1ee1763f63e1b624/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f64657669756d2f70726f636573736573)[![Downloads](https://camo.githubusercontent.com/6fd75672c3a9aed08a2a5b544e45c8035011242dcda0a1fca98f120adc1165e6/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f64657669756d2f70726f636573736573)](https://camo.githubusercontent.com/6fd75672c3a9aed08a2a5b544e45c8035011242dcda0a1fca98f120adc1165e6/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f64657669756d2f70726f636573736573)

This package is used to get a list of running processes on Windows or Unix-like systems, even Darwin.

> Thanks to [fastlist](https://github.com/MarkTiedemann/fastlist) for processes on Windows.

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

[](#installation)

```
composer require devium/processes
```

Usage
-----

[](#usage)

```
use Devium\Processes\Processes;

// some PID, integer
$pid = 1234;
// get all processes except both session leaders, default false
$all = true;

$processes = new Processes($all);
$exists = $processes->exists($pid); // returns true of false
$arrayOfProcesses = $processes->get(); // returns array of processes where key is PID

// for rescanning processes, call rescan() method
$newArrayOfProcesses = $processes->rescan()->get();

// if you only need an array of processes, just use the static asArray():
$listOfProcesses = Processes::asArray();
```

Structure of processes array
----------------------------

[](#structure-of-processes-array)

#### For windows

[](#for-windows)

```
{
  "PID": {
    "pid": "integer",
    "ppid": "integer",
    "name": "string"
  }
}
```

#### For unix-like systems

[](#for-unix-like-systems)

```
{
  "PID": {
    "pid": "integer",
    "ppid": "integer",
    "name": "string",
    "uid": "integer",
    "cpu": "float",
    "memory": "float",
    "cmd": "string"
  }
}
```

Testing
-------

[](#testing)

```
composer test
```

License
-------

[](#license)

**devium/processes** is open-sourced software licensed under the [MIT license](./LICENSE.md).

[Vano Devium](https://github.com/vanodevium/)

---

Made with ❤️ in Ukraine

###  Health Score

42

—

FairBetter than 90% of packages

Maintenance39

Infrequent updates — may be unmaintained

Popularity38

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 93.3% 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 ~791 days

Total

3

Last Release

640d ago

PHP version history (2 changes)v1.0.2PHP ^7.2

v1.1.0PHP ^7.3|^8.0

### Community

Maintainers

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

---

Top Contributors

[![vanodevium](https://avatars.githubusercontent.com/u/16780069?v=4)](https://github.com/vanodevium "vanodevium (14 commits)")[![crishoj](https://avatars.githubusercontent.com/u/20393?v=4)](https://github.com/crishoj "crishoj (1 commits)")

---

Tags

unixprocesslinuxwindowsprocessesdarwinwinmacosps

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/devium-processes/health.svg)

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

###  Alternatives

[jolicode/jolinotif

Send desktop notifications on Windows, Linux, MacOS.

1.4k11.6M41](/packages/jolicode-jolinotif)[cocur/background-process

Start processes in the background that continue running when the PHP process exists.

2971.9M12](/packages/cocur-background-process)[jolicode/castor

A lightweight and modern task runner. Automate everything. In PHP.

53541.0k3](/packages/jolicode-castor)[jolicode/php-os-helper

Helpers to detect the OS of the machine where PHP is running.

212.8M4](/packages/jolicode-php-os-helper)[mpyw/phpunit-patch-serializable-comparison

Fixes assertSame/assertEquals serialization errors running in separate processes.

15245.5k](/packages/mpyw-phpunit-patch-serializable-comparison)[lbaey/chromedriver

Utility for installing Chromedriver, whatever platform you are on, for use with Behat

1459.5k1](/packages/lbaey-chromedriver)

PHPackages © 2026

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