Download the PHP package xmlshop/queue-monitor without Composer

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

Queue Monitor

For Laravel framework

Latest Stable Version Total Downloads License

This package offers monitoring like Laravel Horizon for database queue.

This package initially forked from Laravel-Queue-Monitor.

Features

Installation

Configuration

Copy configuration & migration to your project:

Migrate the Queue Monitoring table. The table name can be configured in the config file or via the published migration.

Scheduler

After the listener automatically will be launched queue-monitor:listener. It might be disabled in configuration or by command

Application Error handler have to be replaced at your application Please add custom error handler:

And please register that in ApplicationProvider

Alert function

  1. Listener looks into database in the x_queue_monitoring_queue_sizes table and comparing current amount with amount mentioned in field alert_threshold. If exceed - alert.
  2. Listener looks into database in the x_queue_monitoring table and comparing several metrics (pending time, execution time, etc.)
  3. You can manage exceptions for each Job. Including ignore alert.

Usage

To monitor a job, simply add the xmlshop\QueueMonitor\Traits\IsMonitored Trait.

Important! You need to implement the Illuminate\Contracts\Queue\ShouldQueue interface to your job class. Otherwise, Laravel framework will not dispatch any events containing status information for monitoring the job.

UI

You can enable the optional UI routes by calling Route::queueMonitor() inside your route file, similar to the official ui scaffolding.

Routes

Route Action
/monitor Show the jobs table

See the configuration files for more information.

Preview

Extended usage

Progress

You can set a progress value (0-100) to get an estimation of a job progression.

Chunk progress

A common scenario for a job is iterating through large collections.

This example job loops through a large amount of users and updates it's progress value with each chunk iteration.

Progress cooldown

To avoid flooding the database with rapidly repeating update queries, you can set override the progressCooldown method and specify a length in seconds to wait before each progress update is written to the database. Notice that cooldown will always be ignore for the values 0, 25, 50, 75 and 100.

Custom data

This package also allows setting custom data in array syntax on the monitoring model.

In order to show custom data on UI you need to add this line under config/monitor.php

Only keep failed jobs

You can override the keepMonitorOnSuccess() method to only store failed monitor entries of an executed job. This can be used if you only want to keep failed monitors for jobs that are frequently executed but worth to monitor. Alternatively you can use Laravel's built in failed_jobs table.

Retrieve processed Jobs

Model Scopes


All versions of queue-monitor with dependencies

PHP Build Version
Package Version
Requires php Version ^8.0
ext-json Version *
ext-mbstring Version *
ext-posix Version *
gpressutto5/laravel-slack Version ^2.0
illuminate/database Version ^5.5|^6.0|^7.0|^8.0|^9.0
illuminate/queue Version ^5.5|^6.0|^7.0|^8.0|^9.0
illuminate/support Version ^5.5|^6.0|^7.0|^8.0|^9.0
lorisleiva/cron-translator Version ^0.4
nesbot/carbon Version ^2.0
webpatser/laravel-uuid Version ^4.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 xmlshop/queue-monitor contains the following files

Loading the files please wait ....