serff / pm2-manager
Monitor Library for PM2
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-11-11 23:29:26 UTC
README
This package contains a manager for PM2 processes
use SERFF\Pm2Manager\Pm2Manager; $process = Pm2Manager::add('ping google.con'); // returns a process to handle $process->restart(); // restarts the process
You can use various methods for managing PM2 or a process
Pm2Manager::restartAll(); // restart all processes Pm2Manager::list(); // returns a list of all processes
Installation
You can install the package via composer:
composer require serff/pm2-manager
Testing
composer test