Download the PHP package aenzenith/laravel-dev-mesh without Composer
On this page you can find all versions of the php package aenzenith/laravel-dev-mesh. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download aenzenith/laravel-dev-mesh
More information about aenzenith/laravel-dev-mesh
Files in aenzenith/laravel-dev-mesh
Package laravel-dev-mesh
Short Description Run Horizon, the scheduler and other long-running artisan services of several Laravel projects from one live terminal dashboard.
License MIT
Homepage https://github.com/aenzenith/laravel-dev-mesh
Informations about the package laravel-dev-mesh
Laravel Dev Mesh
Run Horizon, the scheduler and any other long-running artisan service of one or more Laravel projects from a single command, with a live terminal dashboard.
- One row per project, one column per service: state, uptime, PID, memory (a Horizon master is summed with its supervisors and workers) and restart history.
- Project totals: finished and failed jobs, jobs per minute over the last
five minutes, the latest job and the latest error, parsed from the output of
queue workers and
schedule:work. - Self-healing: a crashed service is restarted after 1, 2, 4 … seconds.
- Restart on code changes: Horizon and
queue:workkeep the application in memory; when a file inapp,config,routes… changes, the project's services are restarted so they run the new code. - Keyboard controls: select a cell with the arrow keys, restart its
service with
r, stop or start it withs. - Isolated environments: every service starts with
env -i, so the variables loaded from the dashboard application's.envnever leak into a sibling project. - Plain output without a TTY: piped or in CI, lines are printed as
[project|service] line.
Requirements
- PHP 8.2+ with
pcntlandposix - Laravel 12 or 13
- macOS or Linux (
sttyandpsare used)
Windows
Native Windows is not supported. Horizon itself needs pcntl and posix,
which PHP does not provide on Windows, and so does this package: Composer
refuses to install it there. The dashboard also relies on POSIX tools and
signals (env -i, stty, ps, SIGTERM).
Use WSL 2 instead: install
PHP with pcntl and posix inside the Linux distribution, keep the projects
on the Linux file system (e.g. ~/code, not /mnt/c) and run the command
from a WSL terminal.
Installation
Configuration
config/dev-mesh.php:
Keep the HERD_ prefix when you use Laravel Herd: its PHP reads the ini that
holds the certificate authority for .test TLS from those variables.
Usage
Set DEV_MESH_COMMAND (or command in the config) to use another name, e.g.
dev.
Keys
| Key | Action |
|---|---|
↑ ↓ / k j |
select a project |
← → / h l |
select a service |
r |
restart the selected service (starts it if it is down) |
s |
stop the selected service, or start it again |
q / Ctrl+C |
stop every service and quit |
A restart is graceful: the service gets SIGTERM and is killed only if it is
still running after 15 seconds, so Horizon finishes the jobs it is working on.
A service stopped with s stays down (no crash restarts, no reloads) until
you start it again.
Restart on code changes
Horizon and queue:work boot the application once and keep it in memory, so
an edited job goes on running its old code. The dashboard polls every project
once a second for changes in watch.paths and restarts the project's
services once the files settle, so a branch checkout restarts them once, not
per file. Directories are scanned for .php files only (a SQLite database or
a log next to the code never triggers a restart); files listed by name, such
as .env, are watched whatever they contain. A crashed service waiting for
its next retry starts at once, so fixing the error brings it back
immediately.
schedule:work starts a fresh schedule:run every minute, but it does keep
the variables of the .env it booted with and hands them to every run, so it
is restarted too. Put a service in watch.except to leave it running, and
set watch.paths to [] to turn watching off.
Translations
The dashboard follows the application locale and ships with 19 languages: English, Turkish, German, French, Spanish, Portuguese (Brazil), Italian, Dutch, Polish, Russian, Ukrainian, Chinese (Simplified and Traditional), Japanese, Korean, Arabic, Hindi, Indonesian and Vietnamese. Publish the language files to change or add one:
Testing
Contributing
See CONTRIBUTING.md. Commits follow Conventional Commits; releases and the changelog are generated from them.
License
MIT. See LICENSE.
All versions of laravel-dev-mesh with dependencies
ext-pcntl Version *
ext-posix Version *
illuminate/console Version ^12.0|^13.0
illuminate/support Version ^12.0|^13.0
symfony/console Version ^7.0|^8.0
symfony/process Version ^7.0|^8.0