PHP code example of dimtrov / sysinfo

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

    

dimtrov / sysinfo example snippets

 php
use Dimtrov\Sysinfo;

Sysinfo::cpu();  // return all the CPU informations (architecture, cores, free, frequency, name, processors, speed, vendor) in array

Sysinfo::ram();  // return all the RAM informations (count, free, freePercentage, list, total, used, usedPercentage) in array

// 

$sysinfo = new Sysinfo();
$sysinfo->ram(); // A instance call is also available