PHP code example of orchidcommunity / monitor
1. Go to this page and download the library: Download orchidcommunity/monitor 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/ */
orchidcommunity / monitor example snippets
$monitor = new Monitor();
// uname,webserver,phpVersion,cpu
$monitor->info();
// temperature,uptime
$monitor->hardware();
// oneMin,fiveMins,fifteenMins
$monitor->loadAverage();
// total,used,buffers,cache
$monitor->memory();
// down,up
$monitor->network();
// array
$monitor->storage();