Download the PHP package mxl/laravel-queue-rate-limit without Composer
On this page you can find all versions of the php package mxl/laravel-queue-rate-limit. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package laravel-queue-rate-limit
laravel-queue-rate-limit
Simple Laravel queue rate limiting
Installation
3.* versions are compatible only with Laravel 7+.
For Laravel 6 use 2.* versions:
For Laravel 5 use 1.* versions:
Laravel 5.5+ will use the auto-discovery feature to add MichaelLedin\LaravelQueueRateLimit\QueueServiceProvider::class
to providers.
This package is not compatible with older Laravel versions.
Add rate limits to config/queue.php
:
Usage
Make sure that you don't use sync
connection when queueing jobs. See default
property in config/queue.php
.
Run queue worker:
Then push several jobs to default
and mail
queues:
You'll see that only mail
queue jobs will be rate limited while default
queue jobs will run normally.
Disable logging
Extend QueueServiceProvider
:
Add it to providers
array in config/app.php
:
Maintainers
Other useful Laravel packages from the author
- mxl/laravel-api-key - API Key Authorization for Laravel with replay attack prevention;
- mxl/laravel-job - dispatch a job from command line and more;
License
See the LICENSE file for details.
All versions of laravel-queue-rate-limit with dependencies
illuminate/queue Version ^7.0||^8.0||^9.0|^10.0||^11.0
illuminate/contracts Version ^7.0||^8.0||^9.0|^10.0||^11.0
illuminate/cache Version ^7.0||^8.0||^9.0|^10.0||^11.0
illuminate/log Version ^7.0||^8.0||^9.0|^10.0||^11.0