serff / pm2-manager
0.0.1
2022-04-03 13:41 UTC
Requires
- php: ^7.4|8.*
- symfony/process: ^5.3.7|^6.0
Requires (Dev)
- phpunit/phpunit: ^7.5.20 || ^9.4.2
This package is not auto-updated.
Last update: 2024-09-16 22:45:48 UTC
README
此包包含 PM2 进程的管理器
use SERFF\Pm2Manager\Pm2Manager; $process = Pm2Manager::add('ping google.con'); // returns a process to handle $process->restart(); // restarts the process
您可以使用各种方法来管理 PM2 或进程
Pm2Manager::restartAll(); // restart all processes Pm2Manager::list(); // returns a list of all processes
安装
您可以通过 composer 安装此包
composer require serff/pm2-manager
测试
composer test