Download the PHP package laratusk/supervise without Composer

On this page you can find all versions of the php package laratusk/supervise. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package supervise

laratusk/supervise

CI Latest Version on Packagist PHP Version License

Define your Supervisor workers in Laravel config and generate real .conf files with one command. Your process config lives in code, not on the server.


What is this package?

Supervisor is a process control system for Linux: it keeps long-running processes (queue workers, Horizon, Reverb, etc.) running and restarts them when they crash. You configure it by placing .conf files in a directory (e.g. /etc/supervisor/conf.d/).

laratusk/supervise is a Laravel package that:

So instead of editing .conf files on each server, you edit one PHP config, commit it, and run php artisan supervise:compile (optionally with --reload) on deploy. Your worker setup is version-controlled and identical everywhere.


Requirements


Installation

Publish config and prepare directories (run once per project):

This creates .supervisor/conf.d/, storage/logs/supervisor/, adds .supervisor/ to .gitignore, and publishes config/supervise.php.


Quick start

  1. Define workers in config/supervise.php under the workers key. Each worker needs a command (the exact command line to run). The array key is the worker name.

  2. Compile to generate .conf files:

  3. Link them into Supervisor’s config directory (once per server, or when you add workers):

  4. Reload Supervisor so it picks up changes. You can do this in one step with compile:

On deploy, many projects only need:

(assuming supervise:link was already run once on that server).


Configuration

Config file: config/supervise.php.

Top-level keys

Key Purpose
conf_path System directory where Supervisor reads configs. supervise:link creates symlinks here. Default: /etc/supervisor/conf.d.
output_path Local directory (relative to project root) where compiled .conf files are written. Default: .supervisor/conf.d. Not committed (gitignored).
defaults Supervisor [program:x] options applied to every worker. Any worker can override these.
workers Your process definitions (see below).
groups Optional Supervisor [group:x] definitions: group name => list of worker names.

Workers

Each entry in workers is one Supervisor program. The key is the program name; the value is an array of options.

Required:

Optional:

Example:

Defaults

The defaults array holds standard Supervisor [program:x] directives (numprocs, autostart, stopsignal, user, stdout_logfile, etc.). They are applied to every worker; workers can override any of them. See the published config/supervise.php for the full list and defaults. For the official directive reference, see Supervisor documentation.

Groups

To define a Supervisor group (so you can control several programs together):

This generates a [group:app-workers] section with programs=horizon,default-queue. Worker names must exist under workers.


Commands

Command Description
php artisan supervise:install One-time setup: creates dirs, publishes config, updates .gitignore.
php artisan supervise:compile Generates .conf files from config/supervise.php into output_path. Overwrites existing files.
php artisan supervise:compile --reload Same as above, then runs supervisorctl reread and supervisorctl update.
php artisan supervise:link Creates symlinks from each compiled .conf in output_path to conf_path. Run once per server (or when adding workers).

Deployment

Typical deploy step:

This regenerates config from your codebase and tells Supervisor to reload. No manual .conf editing on the server.


Testing


License

MIT. See LICENSE.md.


All versions of supervise with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
illuminate/console Version ^10.0|^11.0|^12.0|^13.0
illuminate/support Version ^10.0|^11.0|^12.0|^13.0
spatie/laravel-package-tools Version ^1.16
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package laratusk/supervise contains the following files

Loading the files please wait ...