jiromm / mother-of-daemons
The Mother of Daemons
Installs: 23
Dependents: 0
Suggesters: 0
Security: 0
Stars: 3
Watchers: 0
Forks: 0
Open Issues: 0
pkg:composer/jiromm/mother-of-daemons
Requires
- ext-pcntl: *
- jiromm/react-signal-handler: 1.1.0
- react/child-process: ^0.5.0
- react/http: ^0.8
- zendframework/zend-http: ^2.8
This package is auto-updated.
Last update: 2025-09-14 08:30:48 UTC
README
The Mother of Deamons
Quickstart example
Here is an example of MotherOfDaemons
which runs two daemons and manage them depends on their configuration
See also the examples.
<?php use Jiromm\MotherOfDaemons\MotherOfDaemons; use Jiromm\MotherOfDaemons\Daemon\DaemonCollection; use Jiromm\MotherOfDaemons\Exception\MotherOfDaemonException; use Examples\ImageHandlerDaemon; require __DIR__ . '/../vendor/autoload.php'; require __DIR__ . '/../examples/ImageHandlerDaemon.php'; try { $daemons = new DaemonCollection(); $daemons->add(new ImageHandlerDaemon('buildings')); $daemons->add(new ImageHandlerDaemon('animals')); $mod = new MotherOfDaemons($daemons); $mod->run(true); } catch (MotherOfDaemonException $e) { echo $e->getMessage() . PHP_EOL; }