PHP code example of imedge / systemd
1. Go to this page and download the library: Download imedge/systemd 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/ */
imedge / systemd example snippets
use IMEdge\systemd\systemd;
use Revolt\EventLoop;
systemd::notificationSocket()?->setReady('My process is ready');
EventLoop::delay(10, function () {
systemd::notificationSocket()?->setReady('Process status changed');
})