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-10-29 01:17:11 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();