Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message
Rate Limiter Php

Rate Limiter Php Laravel Package

perimeter/rate-limiter-php

A lightweight PHP rate-limiting library from Perimeter for controlling request throughput across APIs and endpoints. Define limits and time windows to prevent abuse, smooth traffic spikes, and protect application resources with a straightforward, consistent API.

Deep Wiki
Context7

Rate Limiter Implementation in PHP

Frequently asked questions about Rate Limiter Php
Is perimeter/rate-limiter-php compatible with modern Laravel versions?
Compatibility with modern Laravel is unproven. The package is described as a 2015-era generic PHP rate limiter that predates current Laravel package conventions, middleware patterns, and PHP 8.x expectations. Verify Composer constraints, PSR-4 autoloading, and whether any service provider integration exists before assuming it will work in a Laravel application.
How do I install perimeter/rate-limiter-php with Composer?
The Composer name is perimeter/rate-limiter-php, but the canonical repository is unknown, so first confirm the Packagist metadata and source URL. Run composer require perimeter/rate-limiter-php only in an isolated evaluation project. Check the PHP version constraint, dependency age, autoloading, and whether the package installs cleanly on PHP 8.x without deprecation warnings.
Is perimeter/rate-limiter-php still maintained?
There is no credible upstream maintenance signal in the provided context. The package has an unknown repository, roughly 17 stars, a low score, and a last release around 2015, which are strong abandonment indicators. If adopted, expect to fork it, own dependency pinning, and perform periodic security reviews internally.
Does perimeter/rate-limiter-php support Redis or Memcached for distributed rate limiting?
The available information does not confirm Redis, Memcached, or any distributed storage backend. This matters because in-process or file-based counters will not work reliably across multiple Laravel nodes. Verify that any shared store uses atomic increment and expiry operations, and load-test the implementation under concurrency before trusting it in production.
What rate-limiting algorithm does perimeter/rate-limiter-php implement?
The description only says limits and time windows are configurable; it does not specify whether the implementation is fixed window, sliding window, token bucket, or leaky bucket. Inspect the source and tests to confirm the algorithm and its edge cases. The algorithm choice affects burst handling, counter drift, and fairness across clients.
Can I use perimeter/rate-limiter-php safely in production?
Treat production use as high risk until proven otherwise. Rate limiting is correctness- and security-sensitive, and this package lacks clear evidence of tests, benchmarks, observability, and concurrency safety. Without hardening, you risk non-atomic counters, cache outage surprises, silent fail-open behavior, and unintended lockouts.
How does perimeter/rate-limiter-php compare with Laravel's built-in RateLimiter?
Laravel's native RateLimiter, cache-backed throttling, and throttle middleware should be the default path for Laravel applications. This package is an isolated legacy utility rather than a first-class Laravel component, so it likely lacks framework integration and modern operational guarantees. Evaluate it only if you need a specific algorithm that Laravel or maintained alternatives cannot provide.
Does perimeter/rate-limiter-php work on PHP 8.x?
PHP 8.x compatibility is unproven because the package dates from the 2015 era and has unclear dependency constraints. Install it in a disposable environment and run runtime checks, PHPUnit tests, and static analysis against PHP 8.x. Watch for deprecated syntax, old dependency versions, and warnings that could become errors in production.
How should I test perimeter/rate-limiter-php before adopting it?
Start with a short discovery spike and contract tests that define expected limiting behavior. Add concurrency and load tests against the intended storage backend, then shadow-compare results with Laravel's native limiter or Symfony RateLimiter. Wrap the package behind an internal RateLimiterInterface so you can replace it without changing application code.
What are the alternatives to perimeter/rate-limiter-php for Laravel rate limiting?
For most Laravel projects, use the framework's native RateLimiter with Redis or another shared cache and the throttle middleware. If you need a standalone algorithm, evaluate the maintained Symfony RateLimiter or another actively supported package with atomic Redis or Memcached operations. Avoid adopting this abandoned package as platform infrastructure unless you are prepared to fork and harden it.
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
elsayed85/laravel-api-exceptions
ouhssini/laravel-demo-mode
daworks/ncloud-outbound-mailer-driver
gp247/cms
ignibyte/aic-gates
nexa-merchant/blog
novasa/laravel-language-center
opencage/geocode
adolfoholzer/parameters
livenetworks/ln-starter
shitoudev/permissionmanager
johannesclimacus/laravel-tui
hocvt/seotools
vitalybaev/sypexgeo
amphibee/themosis-ignition
gito-me/fast-excel
frankyso/laravel-ipaymu
geolize-studio/laravel-chile
boomerangui/chat
cgv/localized-resource