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 Limit Plugin Laravel Package

saloonphp/rate-limit-plugin

A Saloon plugin for respectful API clients: it tracks requests and handles rate-limit responses, retrying or delaying calls when limits are reached. Drop it into Saloon's middleware pipeline for simple, reliable rate-limit management.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Whether to enable HTTP response caching in front of third-party APIs with quotas: v2.5.3 fixes HasRateLimits so cached responses no longer count against the rate limit, making cache hits cheaper and safer.
  • Capacity and cost planning: accurate quota accounting avoids premature throttling, reduces unnecessary quota-increase requests, and improves API usage forecasts.
  • Build vs. buy for HTTP client middleware: Saloon plus this plugin offers Laravel-native, declarative rate limiting instead of custom sleep/retry/throttle code.
  • Feature rollout: safer to turn on caching for rate-limited endpoints because serving cached responses will not consume provider quota or trigger avoidable 429s.
  • Reliability tradeoffs: fewer false rate-limit failures during traffic spikes, improving availability for integrations that mix caching and quota-bound APIs.

When to Consider This Package

  • You are building Laravel/PHP services that call external APIs through Saloon and need per-connector or per-request quotas.
  • You want rate limits declared near the connector via HasRateLimits rather than scattered through ad hoc retry logic.
  • You use response caching and need cache hits not to consume third-party API quota, which is the behavior corrected in v2.5.3.
  • You need a low-ceremony, framework-native solution and can accept plugin-level rate limiting.
  • Look elsewhere if you are not using Saloon/Laravel, need cross-language or globally distributed quota enforcement beyond the package’s supported stores, depend on provider SDK-specific throttling, or have no third-party quota concerns.

How to Pitch It (Stakeholders)

  • Executives: v2.5.3 is a low-risk patch that fixes quota accounting when cached API responses are served. It prevents unnecessary throttling, protects customer experience, and improves the return on caching by not “spending” rate-limit budget on cache hits.
  • Engineering: this is a patch release with no breaking changes. It corrects HasRateLimits behavior so cached responses are not counted against limits. Adopt it where Saloon connectors combine rate limits and caching, and add or verify tests that cache hits do not increment rate-limit counters.
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.
skyraptor/chatter
edlugz/sasapay
abbasudo/artisan-route
mirvan/ippanel
ignibyte/aic-framework
glavweb/data-schema-bundle
glavweb/datagrid-bundle
tacticmedia/scim-server
uni-method/frame
neika-ai/sdk
adachsoft/php-code-style
pharaonic/laravel-notification-dependencies
beautinow/translug
dev-brainiac/bot-cloaked
octoberrain/html
octoberrain/extension
octoberrain/exception
octoberrain/contracts
adachsoft/api-version-bundle
cgv/localized-resource