PHPackages                             open-southeners/machine-stats - 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. open-southeners/machine-stats

ActiveLibrary

open-southeners/machine-stats
=============================

A platform agnostic machine stats generator (PHP 8.1+). Usage and totals for CPU, disk, memory...

1.0.0(2y ago)112MITPHPPHP ^8.1

Since Oct 30Pushed 2y ago1 watchersCompare

[ Source](https://github.com/open-southeners/machine-stats)[ Packagist](https://packagist.org/packages/open-southeners/machine-stats)[ RSS](/packages/open-southeners-machine-stats/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (4)Versions (2)Used By (0)

Machine Stats [![required php version](https://camo.githubusercontent.com/6a0d49b81311476cd007f376f7ed0ee2db9c7a4cf3f06b759a77ca010c30b2fc/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f6f70656e2d736f757468656e6572732f6d616368696e652d7374617473)](https://www.php.net/supported-versions.php) [![codecov](https://camo.githubusercontent.com/c0061856187cb475bd3a90b67ea8d9319bbe4bdde7f6860fffd6a7f97ad280ac/68747470733a2f2f636f6465636f762e696f2f67682f6f70656e2d736f757468656e6572732f6d616368696e652d73746174732f6272616e63682f6d61696e2f67726170682f62616467652e7376673f746f6b656e3d44475a4f4356464c5752)](https://codecov.io/gh/open-southeners/machine-stats) [![Edit on VSCode online](https://camo.githubusercontent.com/1e825ede949540f53ec4dce8dc8ad93376081856a01b7e3ce2f24f41c9133405/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7673636f64652d656469742532306f6e6c696e652d626c75653f6c6f676f3d76697375616c73747564696f636f6465)](https://vscode.dev/github/open-southeners/machine-stats)
===========================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================

[](#machine-stats---)

A platform agnostic machine stats generator (PHP 8.1+). Usage and totals for CPU, disk, memory...

Getting started
---------------

[](#getting-started)

```
composer require open-southeners/machine-stats
```

### Usage

[](#usage)

```
use OpenSoutheners\MachineStats\StatsManager;

$report = StatsManager::report();

$report->os->value; // 'linux'
$report->cpuCores; // 8
$report->cpuUsage; // 17.12
$report->memoryUnit->name; // 'GB'
$report->memoryAvailable; // 11.89
$report->memoryUsed; // 4.11
$report->diskUnit->name; // 'GB'
$report->diskCapacity; // 200
$report->diskAvailable; // 189
$report->diskUsed; // 11
```

#### Using Laravel

[](#using-laravel)

If you are using Laravel you can simply inject 2 instances into [Laravel's container](https://laravel.com/docs/10.x/container). Add the following on your `AppServiceProvider.php` file at the `register` method:

```
use OpenSoutheners\MachineStats\StatsManager;
use OpenSoutheners\MachineStats\Drivers\DriverInterface;

$this->app->bind(StatsManager::class, fn () => new StatsManager);
$this->app->bind(DriverInterface::class, fn (Application $app) => $app->make(StatsManager::class)->getDriver());
```

**Note: StatsManager is only a wrapper to the Driver, it mimics the Manager code design pattern that Laravel uses in many places like DB, Filesystem, etc. In our case we needed to separate between operating systems (as drivers).**

Partners
--------

[](#partners)

[![skore logo](https://github.com/open-southeners/partners/raw/main/logos/skore_logo.png)](https://getskore.com)

License
-------

[](#license)

This package is open-sourced software licensed under the [MIT license](https://opensource.org/licenses/MIT).

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity51

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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

922d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3a77db503aca4f77ebd99d5083432b8d9eee1131c2a572bb890aabd6b993f9d1?d=identicon)[d8vjork](/maintainers/d8vjork)

---

Top Contributors

[![d8vjork](https://avatars.githubusercontent.com/u/2331052?v=4)](https://github.com/d8vjork "d8vjork (10 commits)")

---

Tags

cpu-usagedisk-usagelinuxmachine-statsmacosmemory-usageresources-usagewindowslinuxwindowsopen-southenersmacosmemory\_usagedisk usageresources usagemachine statscpu usage

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/open-southeners-machine-stats/health.svg)

```
[![Health](https://phpackages.com/badges/open-southeners-machine-stats/health.svg)](https://phpackages.com/packages/open-southeners-machine-stats)
```

###  Alternatives

[jolicode/jolinotif

Send desktop notifications on Windows, Linux, MacOS.

1.4k11.6M41](/packages/jolicode-jolinotif)[cpriego/valet-linux

A more enjoyable local development experience for Linux.

1.5k135.9k](/packages/cpriego-valet-linux)[devium/processes

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

2427.5k](/packages/devium-processes)[jolicode/php-os-helper

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

212.8M4](/packages/jolicode-php-os-helper)[genesisweb/valet-linux-plus

Advanced local development experience for Linux.

18215.3k](/packages/genesisweb-valet-linux-plus)[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)
