PHPackages                             innmind/server-status - 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. innmind/server-status

ActiveLibrary

innmind/server-status
=====================

Library to access various components of the operating system

6.0.0(3mo ago)7100.2k↓27%13MITPHPPHP ~8.4CI passing

Since May 26Pushed 3mo ago1 watchersCompare

[ Source](https://github.com/Innmind/ServerStatus)[ Packagist](https://packagist.org/packages/innmind/server-status)[ Docs](http://github.com/Innmind/ServerStatus)[ RSS](/packages/innmind-server-status/feed)WikiDiscussions develop Synced 1mo ago

READMEChangelog (6)Dependencies (9)Versions (23)Used By (3)

Server Status
=============

[](#server-status)

[![Build Status](https://github.com/innmind/serverstatus/workflows/CI/badge.svg?branch=master)](https://github.com/innmind/serverstatus/actions?query=workflow%3ACI)[![codecov](https://camo.githubusercontent.com/b680f32775c0f4bfd881d1e5f646db17f62523f1575d6182a9d24c0ea7090fdf/68747470733a2f2f636f6465636f762e696f2f67682f696e6e6d696e642f7365727665727374617475732f6272616e63682f646576656c6f702f67726170682f62616467652e737667)](https://codecov.io/gh/innmind/serverstatus)[![Type Coverage](https://camo.githubusercontent.com/9fd604f6d57490c8fe42f966c09c2a4bfe234eeadcb1280f95769c82d6d6b8b6/68747470733a2f2f73686570686572642e6465762f6769746875622f696e6e6d696e642f7365727665727374617475732f636f7665726167652e737667)](https://shepherd.dev/github/innmind/serverstatus)

Give an easy access to the cpu, memory, disk usages and the list of processes running on the machine.

Note

only works for Mac OSX and Linux for now.

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

[](#installation)

```
composer require innmind/server-status
```

Usage
-----

[](#usage)

```
use Innmind\Server\Status\{
    ServerFactory,
    Server\Disk\Volume\MountPoint,
    Server\Process\Pid,
    EnvironmentPath,
};
use Innmind\Server\Control\ServerFactory as Control;
use Innmind\TimeContinuum\Clock;
use Innmind\TimeWarp\Halt\Usleep;
use Innmind\IO\IO;

$server = ServerFactory::build(
    $clock = Clock::live(),
    Control::build(
        $clock,
        IO::fromAmbientAuthority(),
        Usleep::new(),
    ),
    EnvironmentPath::of(\getenv('PATH')),
);

$cpu = $server->cpu()->unwrap();
$cpu->user(); // percentage of the cpu used by the user
$cpu->system(); // percentage of the cpu used by the system
$cpu->idle(); // percentage of the cpu not used
$cpu->cores(); // number of cores available

$memory = $server->memory()->unwrap();
$memory->total(); // total memory of the server
$memory->active(); // memory that is used by processes
$memory->free(); // memory that is not used
$memory->swap(); // memory that is used and located on disk
$memory->used(); // total - free

$loadAverage = $server->loadAverage()->unwrap();
$loadAverage->lastMinute();
$loadAverage->lastFiveMinutes();
$loadAverage->lastFifteenMinutes();

$server->disk()->get(MountPoint::of('/'))->match(
    function($disk) {
        $disk->size(); // total size of the volume
        $disk->available();
        $disk->used();
        $disk->usage(); // percentage of space being used
    },
    fn() => null, // the mount point doesn't exist
);

$server->processes()->get(Pid::of(1))->match(
    function($process) {
        $process->user(); // root in this case
        $process->cpu(); // percentage
        $process->memory(); // percentage
        $process->start(); // point in time at which the process started
        $process->command();
    },
    fn() => null, // the process doesn't exist
);

$server->tmp(); // path to temp directory
```

You can easily log all the informations gathered via a simple decorator:

```
use Innmind\Server\Status\Server\Logger;
use Psr\Log\LoggerInterface;

$server = Logger::of($server, /** instance of LoggerInterface */);
```

###  Health Score

60

—

FairBetter than 99% of packages

Maintenance80

Actively maintained with recent releases

Popularity37

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity90

Battle-tested with a long release history

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

Recently: every ~274 days

Total

19

Last Release

106d ago

Major Versions

1.4.0 → 2.0.02020-01-16

2.2.0 → 3.0.02022-01-23

3.0.0 → 4.0.02023-01-29

4.1.1 → 5.0.02025-05-08

5.0.0 → 6.0.02026-02-01

PHP version history (7 changes)1.0.0PHP ~7.1

2.0.0PHP ~7.4

2.2.0PHP ~7.4|~8.0

3.0.0PHP ~8.0

4.0.0PHP ~8.1

4.1.0PHP ~8.2

6.0.0PHP ~8.4

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/851425?v=4)[Baptiste Langlade](/maintainers/Baptouuuu)[@Baptouuuu](https://github.com/Baptouuuu)

---

Top Contributors

[![Baptouuuu](https://avatars.githubusercontent.com/u/851425?v=4)](https://github.com/Baptouuuu "Baptouuuu (243 commits)")

### Embed Badge

![Health badge](/badges/innmind-server-status/health.svg)

```
[![Health](https://phpackages.com/badges/innmind-server-status/health.svg)](https://phpackages.com/packages/innmind-server-status)
```

###  Alternatives

[api-platform/metadata

API Resource-oriented metadata attributes and factories

243.5M96](/packages/api-platform-metadata)[phpro/http-tools

HTTP tools for developing more consistent HTTP implementations.

28137.8k](/packages/phpro-http-tools)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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