PHPackages                             dev-hvmnd/memory-info - 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. dev-hvmnd/memory-info

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

dev-hvmnd/memory-info
=====================

PHP library for reading the current memory status on Linux systems

v0.1.1(today)00MITPHPPHP &gt;=8.2CI passing

Since Jun 22Pushed today2 watchersCompare

[ Source](https://github.com/dev-hvmnd/php-memory-info)[ Packagist](https://packagist.org/packages/dev-hvmnd/memory-info)[ RSS](/packages/dev-hvmnd-memory-info/feed)WikiDiscussions main Synced today

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

PHP Memory Info
===============

[](#php-memory-info)

PHP Memory Info is a small PHP library for reading the current memory status on Linux systems.

It reads `/proc/meminfo`, normalizes the kernel field names, and returns a typed `MemoryInfo` object. Values are integers in bytes when the Linux kernel exposes the field; optional fields are `null` when absent.

Requirements
------------

[](#requirements)

- Linux with a readable `/proc/meminfo`
- PHP 8.2 or newer
- Composer

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

[](#installation)

```
composer require dev-hvmnd/memory-info
```

Quick Start
-----------

[](#quick-start)

```
