PHP code example of wyrihaximus / phunin-node
1. Go to this page and download the library: Download wyrihaximus/phunin-node 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/ */
wyrihaximus / phunin-node example snippets
use React\EventLoop\Factory;
use WyriHaximus\PhuninNode\Factory as NodeFactory;
use WyriHaximus\PhuninNode\Plugins;
dd plugins
$node->addPlugin(new Plugins\Plugins());
$node->addPlugin(new Plugins\PluginsCategories());
$node->addPlugin(new Plugins\MemoryUsage());
$node->addPlugin(new Plugins\Uptime());
// Get rolling
$loop->run();