psx/sysinfo

Get system cpu and memory usage

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

This package is auto-updated.

Last update: 2023-01-28 21:27:22 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();