Download the PHP package jalallinux/php-pm2 without Composer
On this page you can find all versions of the php package jalallinux/php-pm2. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download jalallinux/php-pm2
More information about jalallinux/php-pm2
Files in jalallinux/php-pm2
Package php-pm2
Short Description Manage pm2 process in php
License MIT
Homepage https://github.com/jalallinux/php-pm2
Informations about the package php-pm2
Installation
You can install the package via composer:
Usage
Pm2
- Full name: \JalalLinuX\Pm2\Pm2
list :question:
Fetch list all running applications
Parameters:
Parameter | Type | Description |
---|---|---|
sortField |
string | Sort field: name, id, pid, memory, cpu, status, uptime |
desc |
bool | Sort order is descending |
link [:question:]()
Connect your server to your dashboard and start collecting metrics
Parameters:
Parameter | Type | Description |
---|---|---|
publicKey |
string | PM2 account PUBLIC_KEY |
secretKey |
string | PM2 account SECRET_KEY |
machineName |
?string | Machine name on the dashboard |
unlink [:question:]()
Disconnect your server from your metrics dashboard
start :question:
Start command with specifics options or start a ecosystem.config.js
Parameters:
Parameter | Type | Description |
---|---|---|
command |
?string | Command to run in pm2 |
options |
array | Options to start pm2 command Guide like ['name' => 'process-1', 'no-autorestart'] |
findBy :question:
Find specific process
Parameters:
Parameter | Type | Description |
---|---|---|
key |
string | Key of property to find process |
value |
string | Value of key |
kill
kill daemon
pid
Fetch pid of specific process
Parameters:
Parameter | Type | Description |
---|---|---|
name |
string | Name of process |
flush :question:
Empty all log files
update :question:
Update in memory pm2
stopAll :question:
Stop all processes
restartAll :question:
Restart all processes
deleteAll :question:
Will stop and delete all processes from pm2 list
stop :question:
Stop specific process
Parameters:
Parameter | Type | Description |
---|---|---|
idOrName |
string | Id or name of process |
restart :question:
Restart specific process
Parameters:
Parameter | Type | Description |
---|---|---|
idOrName |
string | Id or name of process |
delete :question:
Delete specific process
Parameters:
Parameter | Type | Description |
---|---|---|
idOrName |
string | Id or name of process |
save :question:
Freeze a process list for automatic respawn
Parameters:
Parameter | Type | Description |
---|---|---|
force |
bool | Force save list |
logOut :question:
Display all processes output logs
Parameters:
Parameter | Type | Description |
---|---|---|
idOrName |
?string | Id or name of process |
lines |
int | To dig in older logs |
logErr :question:
Display all processes error logs
Parameters:
Parameter | Type | Description |
---|---|---|
idOrName |
?string | Id or name of process |
lines |
int | To dig in older logs |
startup :question:
Generate an active startup script
version [:question:]()
Fetch installed pm2 version
install :question:
Install PM2 (Requirements: node
, npm
)
Parameters:
Parameter | Type | Description |
---|---|---|
version |
string | Specific version |
isInstall
Check if the PM2 is installed
Parameters:
Parameter | Type | Description |
---|---|---|
forceInstall |
bool | Install pm2 if is not installed |
version |
string | Specific version |
Testing
Changelog
Please see CHANGELOG for more information on what has changed recently.
Credits
- JalalLinuX
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of php-pm2 with dependencies
ext-json Version *