Download the PHP package leonardohipolito/laravel-http-client-rate-limiter-middleware without Composer
On this page you can find all versions of the php package leonardohipolito/laravel-http-client-rate-limiter-middleware. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download leonardohipolito/laravel-http-client-rate-limiter-middleware
More information about leonardohipolito/laravel-http-client-rate-limiter-middleware
Files in leonardohipolito/laravel-http-client-rate-limiter-middleware
Package laravel-http-client-rate-limiter-middleware
Short Description This is my package laravel-http-client-rate-limiter-middleware
License MIT
Homepage https://github.com/leonardohipolito/laravel-http-client-rate-limiter-middleware
Informations about the package laravel-http-client-rate-limiter-middleware
A rate limiter to Laravel Http Client
A rate limiter middleware for Laravel Http Client. Here's what you need to know:
- Specify a maximum amount of requests per minute or per second
- When the limit is reached, the process will
sleepuntil the request can be made - Implement your own driver to persist the rate limiter's request store. This is necessary if the rate limiter needs to
work across separate processes, the package ships with an
InMemoryStore.
Installation
You can install the package via composer:
Usage
Laravel 9
Laravel 10
You can create a rate limiter to limit per second or per minute.
Custom stores
By default, the rate limiter works in Cache. This means that if you have a second PHP process but you can create your own store.
Testing
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
- Leonardo Hipolito
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of laravel-http-client-rate-limiter-middleware with dependencies
spatie/laravel-package-tools Version ^1.14.0
illuminate/contracts Version ^9.0|^10.0