2017 © Pedro Peláez
 

library mother-of-daemons

Dynamically scalable daemons manager

image

jiromm/mother-of-daemons

Dynamically scalable daemons manager

  • Thursday, November 30, 2017
  • by jiromm
  • Repository
  • 0 Watchers
  • 3 Stars
  • 7 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Mother of Daemons

The Mother of Deamons, (*1)

Quickstart example

Here is an example of MotherOfDaemons which runs two daemons and manage them depends on their configuration, (*2)

See also the examples., (*3)

<?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;
}

The Versions

30/11 2017

dev-master

9999999-dev

Dynamically scalable daemons manager

  Sources   Download

MIT

The Requires

 

by Aram Baghdasaryan

daemon react

23/11 2017

v0.1.0

0.1.0.0

Dynamically scalable daemons manager

  Sources   Download

MIT

The Requires

 

by Aram Baghdasaryan

daemon react