1. Go to this page and download the library: Download mozartk/process-checker 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/ */
mozartk / process-checker example snippets
mozartk\ProcessChecker\ProcessChecker;
$processHandler = new ProcessChecker();
$processHandler->setConfigPath("config.json");
$data = $processHandler->run();
print_r($data);
mozartk\ProcessChecker\ProcessChecker;
$processHandler = new ProcessChecker();
$processHandler->setOutputMode("array");
$processHandler->setProcessName(array("php", "httpd")); //Parameters must be an array.
$data = $processHandler->run();
print_r($data);