Download the PHP package avnsh1111/laravel-api-rate-limiter without Composer
On this page you can find all versions of the php package avnsh1111/laravel-api-rate-limiter. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download avnsh1111/laravel-api-rate-limiter
More information about avnsh1111/laravel-api-rate-limiter
Files in avnsh1111/laravel-api-rate-limiter
Package laravel-api-rate-limiter
Short Description Laravel API Rate Limiter is an open-source package designed to help developers easily implement and manage rate limiting for their API endpoints in Laravel applications. This package aims to provide a flexible and configurable solution for protecting APIs from excessive requests, ensuring optimal performance and preventing abuse.
License MIT
Informations about the package laravel-api-rate-limiter
Laravel API Rate Limiter
Laravel API Rate Limiter is an open-source package designed to help developers easily implement and manage rate limiting for their API endpoints in Laravel applications. This package aims to provide a flexible and configurable solution for protecting APIs from excessive requests, ensuring optimal performance and preventing abuse.
Table of Contents
- Installation
- Configuration
- Usage
- Add-ons
- Support
- Contributing
- License
Installation
You can install the package via composer:
Configuration
Before publishing the configuration file, you need to add the LaravelApiRateLimiterServiceProvider
to the providers
array in your config/app.php
:
After adding the ServiceProvider, publish the configuration file to configure the rate limiting settings:
This will create a laravel-api-rate-limiter.php
configuration file in your config
folder.
In the configuration file, you can set the default rate limit, rate limiting method, response headers, and whitelist/blacklist specific IP addresses, users, and routes.
Usage
To apply rate limiting to specific routes or route groups, use the provided middleware:
You can also customize the rate limit for specific routes by passing the limit as an argument to the middleware:
Add-ons
- Integration with Laravel's built-in caching system to store and manage rate limiting data efficiently.
- A user-friendly dashboard for monitoring rate limiting statistics, such as the number of requests, blocked requests, and whitelisted/blacklisted IPs or users.
- Support for automatically adjusting rate limits based on server load or other performance metrics.
- Integration with popular third-party API management and monitoring tools, such as Postman or Swagger, to provide additional insights and control over API usage.
Support
If you encounter any issues or require assistance, please check the comprehensive documentation or reach out to the community through the issue tracker on GitHub.
Contributing
Contributions are welcome! If you would like to contribute to the project, please fork the repository, make your changes, and submit a pull request. Be sure to follow the coding standards and provide tests for any new features or bug fixes.
License
The Laravel API Rate Limiter package is open-source software licensed under the MIT license.