serff/pm2-manager

Monitor Library for PM2

0.0.1 2022-04-03 13:41 UTC

This package is not auto-updated.

Last update: 2024-11-11 23:29:26 UTC


README

Latest Version on Packagist Tests

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