PHP code example of mxl / laravel-queue-rate-limit
1. Go to this page and download the library: Download mxl/laravel-queue-rate-limit library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
mxl / laravel-queue-rate-limit example snippets
'rateLimits' => [
'mail' => [ // queue name, not connection name
'allows' => 1, // 1 job
'every' => 5 // per 5 seconds
]
]