kyozhou / php-service-manager
1.0.6
2019-03-28 07:06 UTC
Requires
- php: >=5.3.3
This package is auto-updated.
Last update: 2025-04-29 01:05:58 UTC
README
tool help you to manage your process, based on swoole
How to use ?
- add
kyozhou/php-service-manager
to require filed in your composer.json file - composer install
php yourscript.php start|stop|restart|debug
(it will create a "yourscript.pid" file in current dic)
use case
<?php
require 'vendor/autoload.php'; //this will autoload php-service-manager
while(true) {
file_put_contents("/tmp/logger.log", rand(1, 9) . ',', FILE_APPEND);
sleep(1);
}
author email: kyozhou@sina.com