quazardous/php-daemon

A Very Basic PHP Daemon

1.1.0 2020-01-04 20:57 UTC

This package is auto-updated.

Last update: 2024-11-05 07:41:38 UTC


README

A Very Basic PHP Daemon

usage

composer require quazardous/php-daemon

wtf (what's the functionality ?)

A main loop is waiting for something to do. The daemon creates process for each task. The process uses pcntl functions to create child process to run the given task.

soft/hard max

For each group/family of tasks you can set soft or hard max.

Soft max is handled with a weight system.