A library to make setup and management of forking daemons in PHP easy.
- Easy management of PHP forks
- Splitting work units into buckets
- Preforking callbacks to manage resources before forking
- Dynamic setting of number of children / work per child
Check out the examples in the examples directory
php example/blocking.php
- You need to specify
declare(ticks=1);
before inclusion of the fork-daemon library, otherwise signals wont be handled. Ref: php.net/declare
Copyright 2013 Barracuda Networks, Inc. Licensed under the MIT License