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-04-29 00:16:58 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();