PHP code example of danielme85 / simple-server-info
1. Go to this page and download the library: Download danielme85/simple-server-info library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
danielme85 / simple-server-info example snippets
use danielme85\Server\Info;
$info = new Info();
$cpuInfo = $info->cpuInfo();
$cpuUsage = $info->cpuLoad($sampleSec = 1, $rounding = 2);