承接 nsp-team/webman-throttler 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

nsp-team/webman-throttler

Composer 安装命令:

composer require nsp-team/webman-throttler

包简介

very Very easy to use a current limiting component, the code is very simple, based on the webman framework.

README 文档

README

限流类(Throttler)提供了一种非常简单的方法,可以将用户要执行的活动限制为在设定的时间段内只能进行一定次数的尝试。这最常用于对 API 进行速率限制,或限制用户针对表单进行的尝试次数,以帮助防止暴力攻击。 该类可用于你根据设置的时间来进行限制的操作。

限流类

  • 全局中间件,整个应用接口限流,
  • 路由中间件,某些功能接口请求速率限制

缓存依据的是Support\Cache的 instance(), 其他类只要是实现 get($key, $default = null), set($key, $value, $ttl = null), delete($key) funtion就行.

项目地址:https://github.com/nsp-team/webman-throttler

安装

composer require nsp-team/webman-throttler

基本用法

默认 开启全局中间件限流

return [
    '' => [
        \NspTeam\WebmanThrottler\Middleware\ThrottlerMiddleware::class,
    ]
];

你也可以启用路由中间件,控制接口请求速率限制 例如:

Route::group('/sys/user', static function () {
    Route::post('/test', [User::class, 'test']);
})->middleware([
    \NspTeam\WebmanThrottler\Middleware\ThrottlerMiddleware::class
]);

nsp-team/webman-throttler 适用场景与选型建议

nsp-team/webman-throttler 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 875 次下载、GitHub Stars 达 16, 最近一次更新时间为 2022 年 03 月 30 日, 在 PHP 生态内属于活跃度较高的组件。

我们在过去多个企业项目中使用过 nsp-team/webman-throttler 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 nsp-team/webman-throttler 我们能提供哪些服务?
定制开发 / 二次开发

基于 nsp-team/webman-throttler 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

  • 总下载量: 875
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 16
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 16
  • Watchers: 0
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-03-30