PHP code example of plinker / system

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

    

plinker / system example snippets

 php
$client->system->enumerate([
    'arch',
    'hostname',
    'disks' => ['/'],
    'ping' => ['https://google.com'],
]);

// or single method
$client->system->enumerate('disks', ['/']);
 php
$client->system->arch();
 text
x86_64
 php
$client->system->clear_swap();
 php
$client->system->cpu_info();
 php
$client->system->disk_space();
 php
$client->system->disks();

// dont parse
$client->system->disks(false);
 php
$client->system->distro();
 php
$client->system->drop_cache();
 php
$client->system->hostname();
 php
$client->system->load();
 php
$client->system->logins();
 php
$client->system->machine_id();
 php
$client->system->memory_stats();
 php
$client->system->memory_total();
 php
$client->system->netstat();
 php
$client->system->ping('google.com');
 php
$client->system->pstree();
 php
$client->system->reboot();
 php
$client->system->cpu_usage();
 php
$client->system->system_updates();
 php
$client->system->top();
 php
$client->system->total_disk_space();
 php
$client->system->uname();
 php
$client->system->uptime();