renlight10 / bproccess
This package is abandoned and no longer maintained.
The author suggests using the ospek/ospek package instead.
php background proccess
1.0.1
2017-01-10 18:33 UTC
Requires
- php: >=5.3.0
This package is not auto-updated.
Last update: 2022-02-01 13:04:28 UTC
README
A Maintenance for php background process wrapper #88704
- require
- Linux
- nohup
- new function
- log output
- read output log
Install
composer require renlight10/bproccess
Usage
use renlight10\BProccess\BProccess; $proccess = new BProccess(command,locationfile=optional); echo $proccess->getPid();
if you already have pid
use renlight10\BProccess\BProccess; $proccess = new BProccess; $proccess->setPid(int);
possible method:
- getPid() - get process id
- setPid(int) - set process id
- status() - check process status
- start() - start process (process auto start when command in construct)
- stop() - stop process
- read("location file") - read output log
Secure your user input for process argument with this.