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. [Utility &amp; Helpers](/categories/utility)
4. /
5. open-southeners/machine-stats

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

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 today

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 26% 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

976d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/2331052?v=4)[Ruben Robles](/maintainers/d8vjork)[@d8vjork](https://github.com/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

[matomo/matomo

Matomo is the leading Free/Libre open analytics platform

21.7k38.9k](/packages/matomo-matomo)[civicrm/civicrm-core

Open source constituent relationship management for non-profits, NGOs and advocacy organizations.

751291.4k41](/packages/civicrm-civicrm-core)[spatie/laravel-export

Create a static site bundle from a Laravel app

674146.0k6](/packages/spatie-laravel-export)[illuminate/process

The Illuminate Process package.

44869.2k99](/packages/illuminate-process)[devium/processes

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

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

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

213.3M6](/packages/jolicode-php-os-helper)

PHPackages © 2026

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