Download the PHP package nathanphelps/watchtower without Composer

On this page you can find all versions of the php package nathanphelps/watchtower. 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 watchtower

Watchtower

Latest Version on Packagist PHP Version

Cross-platform Laravel queue monitoring and worker management dashboard

Watchtower provides queue monitoring and worker management capabilities similar to Laravel Horizon, but with full cross-platform support including Windows. Unlike Horizon, which relies on PCNTL signals (Unix-only), Watchtower uses a polling-based approach for worker control that works on Windows, Linux, and macOS.

Features

Requirements

Installation

Publish the configuration and assets:

Configuration

The package configuration is published to config/watchtower.php:

Usage

Starting the Supervisor

Run the supervisor to automatically manage your queue workers:

The supervisor will:

Tip: Set 'queue' => '*' in your config (default) to automatically detect and process all queues. Or specify explicit queues: 'queue' => ['default', 'emails', 'high']

Manual Worker Control

Start a single worker manually:

Zero-Downtime Deployments

Gracefully restart all workers after deploying new code:

Options:

Workers will finish processing their current job, then restart with fresh code.

Terminating All Processes

Stop the supervisor and all workers (similar to horizon:terminate):

Options:

Accessing the Dashboard

Visit /watchtower in your browser. By default, the dashboard is only accessible in local environments. Configure the gate in your AuthServiceProvider for production:

Pruning Old Jobs

Watchtower automatically prunes old job records. You can also run the prune command manually:

How It Works

Polling-Based Control

Unlike Horizon which uses PCNTL signals (Unix-only), Watchtower uses Redis for worker control:

  1. Dashboard sends command to Redis: SET watchtower:worker:{id}:command "stop"
  2. Worker checks Redis every 3 seconds
  3. Worker reads and executes the command
  4. Worker confirms status in database

This approach provides:

Dashboard Updates

The dashboard polls for updates every 3 seconds (configurable). This provides near-real-time visibility into:

Artisan Commands

Command Description
watchtower:supervisor Start the supervisor to manage workers
watchtower:worker {queue} Start a single worker process
watchtower:prune Prune old job records

License

MIT License. See LICENSE.md for details.

Contributing

Contributions are welcome! Please see CONTRIBUTING.md for details.

Security

If you discover a security vulnerability, please send an email instead of using the issue tracker. See SECURITY.md for details.

Credits


All versions of watchtower with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
illuminate/support Version ^11.0|^12.0
illuminate/queue Version ^11.0|^12.0
illuminate/redis Version ^11.0|^12.0
illuminate/database Version ^11.0|^12.0
illuminate/contracts Version ^11.0|^12.0
symfony/process Version ^6.0|^7.0
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 nathanphelps/watchtower contains the following files

Loading the files please wait ...