定制 saloonphp/rate-limit-plugin 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

saloonphp/rate-limit-plugin

最新稳定版本:v2.4.0

Composer 安装命令:

composer require saloonphp/rate-limit-plugin

包简介

Handle rate limits beautifully in your Saloon API integrations or SDKs

README 文档

README

Handling rate limits can be hard. This first-party plugin provides you with the tools you need to prevent rate-limits and handle what happens if a rate-limit is exceeded. This plugin allows you to define limits on your connector/request.

Available Stores

  • In-Memory (Array)
  • File
  • Redis
  • Predis
  • PSR Cache Store
  • Laravel Cache Store

With this plugin, you are be able to define various limits on a per-integration basis. You can also control if Saloon should throw an exception or sleep if a limit is reached. Saloon will keep track of how many requests are made and when a rate-limit is hit, Saloon will prevent further requests on the connector/request until the rate limit has been lifted.

Installation

You can install the cache plugin through Composer.

composer require saloonphp/rate-limit-plugin "^2.0"

Documentation

Click here to read the documentation

统计信息

  • 总下载量: 1.02M
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 18
  • 点击次数: 2
  • 依赖项目数: 25
  • 推荐数: 0

GitHub 信息

  • Stars: 18
  • Watchers: 1
  • Forks: 4
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-01-04