dev-develop
dev-developRun PHP scripts as a background daemon
MIT
The Requires
- php >=5.3.2
- ext-pcntl *
- ext-posix *
The Development Requires
- ext-test_helpers *
- ext-runkit *
- symfony/process 2.1.*
Wallogit.com
2017 © Pedro Peláez
Run PHP scripts as a background daemon
Daemonize your PHP scripts to accomplish work in the background., (*2)
Note: This library requires that you install the Process Control and POSIX extensions., (*3)
The easiest way to add orkestra-common to your project is using composer., (*4)
Add orkestra-common to your composer.json file:, (*5)
``` json { "require": { "orkestra/daemon": "dev-master" } }, (*6)
Then run `composer install` or `composer update`. Usage ----- Currently, a worker must be a valid executable accepted by `pcntl_exec`. ``` php <?php require __DIR__ . '/vendor/autoload.php'; use Orkestra\Daemon\Daemon; $daemon = new Daemon(); $daemon->addWorker('/path/to/executable'); $daemon->execute();
Run PHP scripts as a background daemon
MIT