Download the PHP package ccarver/queue-watcher-laravel without Composer

On this page you can find all versions of the php package ccarver/queue-watcher-laravel. 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 queue-watcher-laravel

queue-watcher-laravel

A Laravel package that integrates with the queue-watcher Go process. It hooks into Laravel's queue job lifecycle and emits newline-delimited JSON to stdout so queue-watcher can monitor jobs in real time. It also tracks sent emails to a database for inbox-style monitoring.

Requirements

Installation

Laravel's auto-discovery will register the service provider automatically. No manual registration is needed.

Features

Configuration

Publish the config file if you need to override defaults:

This creates config/queue-watcher.php. Available env vars:

Queue telemetry

While php artisan queue:work is running, the package listens to Laravel's queue events and writes a JSON line to stdout for each job transition:

The queue-watcher Go process reads these lines from the worker's stdout pipe. Telemetry is only active during php artisan queue:work and is a no-op in web requests.

Mail tracking

Every email sent through Laravel's mailer is saved to the queue_watcher_mail database table. This works in all contexts — web requests and queue workers alike.

Setup

Publish and run the migration:

What is stored

Each record captures everything needed to render the email in an inbox view:

Column Description
message_id SMTP Message-ID header
subject Email subject
sent_at Date from the message (RFC 2822)
from Sender(s) as [{address, name}]
reply_to Reply-to address(es)
to Primary recipient(s)
cc CC recipient(s)
bcc BCC recipient(s)
body_html HTML body
body_text Plain-text body
created_at When the record was inserted

Pruning old records

Stored emails are automatically pruned using Laravel's built-in model pruning. Records older than prune_after_days (default: 7) are deleted when you run:

Schedule this in your application's routes/console.php (Laravel 11+) or App\Console\Kernel:

Set QUEUE_WATCHER_MAIL_PRUNE_DAYS=0 to disable pruning (records kept indefinitely).

Querying stored mail

Records are accessible via the WatchedMail Eloquent model:

Upgrading

v1.0.0 → v2.0.0

Version 2.0 adds mail tracking. No breaking changes to existing queue telemetry behaviour.

New dependency

illuminate/mail and illuminate/database are now required. These are included in a standard Laravel installation, so no extra steps are needed for most projects.

Run the new migration

This creates the queue_watcher_mail table. Existing tables are untouched.

Publish the updated config (optional)

If you previously published config/queue-watcher.php, re-publish or manually add the new mail block:

Schedule pruning (optional)

Add model:prune to your scheduler if you want old mail records cleaned up automatically — see Pruning old records.


License

MIT


All versions of queue-watcher-laravel with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
illuminate/support Version ^10.0|^11.0|^12.0
illuminate/queue Version ^10.0|^11.0|^12.0
illuminate/mail Version ^10.0|^11.0|^12.0
illuminate/database Version ^10.0|^11.0|^12.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 ccarver/queue-watcher-laravel contains the following files

Loading the files please wait ...