quazardous / php-daemon
A Very Basic PHP Daemon
1.1.0
2020-01-04 20:57 UTC
Requires
- php: >=7.1.0
- ext-pcntl: *
- phpunit/phpunit: ^6.2
- psr/log: ^1.0
This package is auto-updated.
Last update: 2024-12-05 07:46:26 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.