PHP Package: spatie/guzzle-rate-limiter-middleware

Guzzle rate limiter middleware for controlling API request rates efficiently and effectively.

Current Version: 2.1.0
Last Updated: 2024-12-02
PHP Requirement: ^7.1|^8.0
Dependencies:
guzzle/guzzle
⚠️ To ensure full functionality, the above dependencies might be required.

Package Description

The Guzzle rate limiter middleware by Spatie is a powerful tool for managing API request rates with precision. It allows developers to maintain optimal usage levels, prevent abuse, and ensure the stability of their applications. With customizable options and seamless integration, this middleware provides a robust solution for rate limiting in PHP applications.

📦 Show all available classes🔗 View on GitHub

Download Latest Version: 2.1.0

Download Download v2.1.0

Code Integration Example

Make sure to include the correct namespace and class paths for proper usage.

<?php
// Example from PHPlibraries.com
require_once 'libs/spatie/guzzle-rate-limiter-middleware/2.1.0/loader.php';
require_once 'libs/guzzle/guzzle/7.10.0/loader.php';

use Spatie\GuzzleRateLimiterMiddleware\RateLimiterMiddleware;

$obj = new RateLimiterMiddleware();
echo '✅ Test OK: ' . get_class($obj);
?>

We aim to make using PHP packages easier without Composer. If something doesn't work, let us know — we'll fix it promptly.

Community Discussion

Ask questions, share tips, or report issues below.