Download the PHP package ariadata/larastack-supervisor without Composer
On this page you can find all versions of the php package ariadata/larastack-supervisor. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download ariadata/larastack-supervisor
More information about ariadata/larastack-supervisor
Files in ariadata/larastack-supervisor
Package larastack-supervisor
Short Description Larastack Supervisor manager via artisan
License MIT
Informations about the package larastack-supervisor
Larastack Supervisor
Larastack Supervisor is a Laravel package that allows you to manage Supervisor processes directly via Artisan commands. Whether you're starting, stopping, or checking the status of your processes, this package keeps your Supervisor management simple and intuitive.
Installation
You can install this package via Composer:
Configuration on .env
After installation, need to add these in your .env
file:
Usage
You can interact with Supervisor using either the Facade
or the helper function
.
Using the Facade
Ensure you have added the alias in your config/app.php (this is automatically registered if you are using Laravel's auto-discovery feature , laravel <= 7.x):
Examples:
Using the Helper Function
You can also use the helper function larastack_supervisor()
to interact with Supervisor:
Available Artisan Commands
You can also manage Supervisor processes directly from the command line using Artisan.
Command Signature
Actions
- list - List all processes.
- status [service] - Show the status of a specific service or all services.
- start [service] - Start a specific service or all services.
- stop [service] - Stop a specific service or all services.
- restart [service] - Restart a specific service or all services.
- Examples
-
Start all services:
-
Stop a specific service (e.g., laravel-horizon):
-
Get the status of all services:
- Restart a specific service:
Process Statuses
The following statuses may be returned when querying the status of Supervisor-managed processes:
- STOPPED
- STARTING
- RUNNING
- BACKOFF
- STOPPING
- EXITED
- FATAL
- UNKNOWN
License
This package is open-sourced software licensed under the MIT
license.
Key Points Covered:
- Installation via Composer.
- Configuration for customizing Supervisor's RPC settings.
- Usage examples with both the Facade and the helper function.
- Artisan Commands to control Supervisor processes from the command line.
- A list of process statuses that Supervisor can return.
- A structured and clean
README.md
file that provides clear instructions for installation, configuration, usage, - and available commands for your package.
All versions of larastack-supervisor with dependencies
guzzlehttp/guzzle Version ^7.0
lstrojny/fxmlrpc Version ^0.22
supervisorphp/supervisor Version ^5.0