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.

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-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

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

  1. Integration with Laravel's built-in caching system to store and manage rate limiting data efficiently.
  2. A user-friendly dashboard for monitoring rate limiting statistics, such as the number of requests, blocked requests, and whitelisted/blacklisted IPs or users.
  3. Support for automatically adjusting rate limits based on server load or other performance metrics.
  4. 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.


All versions of laravel-api-rate-limiter with dependencies

PHP Build Version
Package Version
Requires illuminate/support Version ^8.0|^10.0
php Version ^7.3|^8.0|^8.2
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 avnsh1111/laravel-api-rate-limiter contains the following files

Loading the files please wait ....