psx/sysinfo

Get system cpu and memory usage

v0.2.0 2022-11-28 21:06 UTC

This package is auto-updated.

Last update: 2024-11-29 01:29:07 UTC


README

About

This library provides a simple way to get current CPU and memory usage.

Usage

<?php

$environment = \PSX\SysInfo\Environment::create();

$cpuUsage = $environment->getCpuUsage();
$memoryUsage = $environment->getMemoryUsage();