Download the PHP package eubourne/laravel-queue-throttle without Composer

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

Laravel Queue Throttle

Latest Version on Packagist

Laravel Queue Throttle is a package designed to manage and throttle the processing of jobs in Laravel queues. It enables you to set rate limits on your queues, preventing system overloads by controlling job execution rates.

Features

Installation

To install the package, run:

This package leverages Laravel's Laravels package auto-discovery feature, so no manual service provider registration is required.

Basic Usage

To set a rate limit for a queue, update the throttle configuration in your config/queue.php file:

In this example, the mail queue is limited to processing 10 jobs every 60 seconds. Other queues will remain unrestricted by default.

Sharing Rate Limits

To share a rate limit across multiple queues, separate the queue names with a colon (:):

Here, the mail and notifications queues share the same limit. For instance, if 8 jobs are processed from the mail queue, only 2 jobs can be processed from the notifications queue within the same 60-second interval.

Optimization

Improve performance and reduce configuration resolution overhead by caching rate limit configurations:

To clear cached configurations, run:

Additionally, standard Laravel optimization commands are supported:

View the current rate limit configuration with:


Logging

To debug rate-limiting activities, set the throttle_logger configuration in your config/queue.php:

Specify a logging channel to monitor and debug throttling operations. If left unset, logging will be disabled.

Testing

The package includes helper Artisan commands to test queue functionality.

Queue Status

Check if a queue is functioning and processing jobs:

This command dispatches a test job to the specified queue and verifies successful processing.

Fill Queue

Fill a queue with test jobs to simulate workload and observe processing behavior:

For example, to test rate limiting on the mail and notifications queues:

Monitor the processing of these queues using Laravel's built-in monitoring command:

License

This package is open-source and available for free under the MIT license.

Contributing

Feel free to submit issues or pull requests to help improve this package.

Contact

For more information or support, please reach out via GitHub or email.


All versions of laravel-queue-throttle with dependencies

PHP Build Version
Package Version
Requires laravel/framework Version ^11
php Version ^8.3
psr/log Version ^1.0|^2.0|^3.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 eubourne/laravel-queue-throttle contains the following files

Loading the files please wait ....