PHP code example of justfine / phpsysinfo

1. Go to this page and download the library: Download justfine/phpsysinfo 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/ */

    

justfine / phpsysinfo example snippets


use Justfine\PhpSysInfo\SystemInformation;

        $sysinfo = new SystemInformation;
        dump($sysinfo->getMemoryUsage());
        dump($sysinfo->getMemoryTotal());
        dump($sysinfo->getCpuInfo());
        dump($sysinfo->getUptime());
        dump($sysinfo->getLoadAverages());
        dump($sysinfo->getDistribution());
        dump($sysinfo->getKernel());
        dump($sysinfo->getLoadPercent());
        dump($sysinfo->getStorageTotal());
        dump($sysinfo->getStorageFree());
        dump($sysinfo->getStorageUsage());
         .....