PHPackages                             ahaaje/linux-system-information - 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. ahaaje/linux-system-information

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

ahaaje/linux-system-information
===============================

Light-weight library to help gather information on a running Linux system

v2.0.0(3mo ago)034[1 issues](https://github.com/ahaaje/linux-system-information/issues)MITPHPPHP ^8.3CI failing

Since Jul 18Pushed 3mo ago1 watchersCompare

[ Source](https://github.com/ahaaje/linux-system-information)[ Packagist](https://packagist.org/packages/ahaaje/linux-system-information)[ RSS](/packages/ahaaje-linux-system-information/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (6)Dependencies (1)Versions (8)Used By (0)

Linux System Information
========================

[](#linux-system-information)

[![Latest Stable Version](https://camo.githubusercontent.com/c59985ab93f813bc68143f21cc1799677373738d991947528a152177fc8daa50/68747470733a2f2f706f7365722e707567782e6f72672f616861616a652f6c696e75782d73797374656d2d696e666f726d6174696f6e2f762f737461626c65)](https://packagist.org/packages/ahaaje/linux-system-information)[![License](https://camo.githubusercontent.com/7118bdd2526c1a3af2180807249b9dbe1fea3c6fd28e8b92d06d545bb0d821b4/68747470733a2f2f706f7365722e707567782e6f72672f616861616a652f6c696e75782d73797374656d2d696e666f726d6174696f6e2f6c6963656e7365)](https://packagist.org/packages/ahaaje/linux-system-information)[![composer.lock](https://camo.githubusercontent.com/e345a9528c1dd5b768992fe70a5492df173648df43d10e3ad80dc411f6791a87/68747470733a2f2f706f7365722e707567782e6f72672f616861616a652f6c696e75782d73797374656d2d696e666f726d6174696f6e2f636f6d706f7365726c6f636b)](https://packagist.org/packages/ahaaje/linux-system-information)

This is a light-weight library to gather information (stats) about the Linux system it is running on.

The information is read from the files in /proc/\* and /etc/\*. These are usually world-readable, but your system may vary. There is no dependency on `system` or `exec`calls to binaries installed on your system.

Features
--------

[](#features)

- PSR-4 auto loading compliant structure
- Example file
- Normalize stats to a "human-readable" form
- Extendability

Stats that can be fetched
-------------------------

[](#stats-that-can-be-fetched)

- hostname
- load average for 1, 5 or 15 minutes
- memory as total, available and used
- file system size and usage

### Requirements

[](#requirements)

- Linux
- PHP 8.3

### Installation

[](#installation)

With [composer](https://getcomposer.org/) simply do `composer require ahaaje/linux-system-information` inside your project directory.

### Usage

[](#usage)

This is from the example file. You should not need to require the autoloader if already using composer to manage your project requirements

```
