1. Go to this page and download the library: Download adrian0350/php-daemon 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/ */
adrian0350 / php-daemon example snippets
json
"drian0350/php-daemon": "1.*"
}
$ composer
// Start by including the class (if 1 level down).
if ($PHPDaemon->isAlive())
{
echo mb_convert_encoding('😈', 'UTF-8', 'HTML-ENTITIES');
echo ' Your daemon is alive and running!'.PHP_EOL;
}
else
{
if ($PHPDaemon->start())
{
echo 'You\'ve unleashed the beast!'.PHP_EOL;
}
else
{
echo $PHPDaemon->error['message'].PHP_EOL;
}
}
if ($PHPDaemon->stop())
{
echo mb_convert_encoding('😈', 'UTF-8', 'HTML-ENTITIES');
echo ' Your daemon has been stopped from deminishing the world!'.PHP_EOL;
}
else
{
// Print out error message.
echo $PHPDaemon->error['message'];
}
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.