renlight10 / bproccess
php background proccess
Installs: 1 992
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
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.