Ecosyste.ms: OpenCollective
An open API service for software projects hosted on Open Collective.
github.com/top-think/think-throttle
thinkphp 限制访问频率的中间件
https://github.com/top-think/think-throttle
fix: Implicit conversion from float to int loses precision
ca64c65a884a92f77dd7bededca8f8bec8e6a2dd authored over 1 year ago
ca64c65a884a92f77dd7bededca8f8bec8e6a2dd authored over 1 year ago
消除单元测试中的警告
PHPUnit 9.6.9 by Sebastian Bergmann and contributors.
Warning: Abstract test case classes...
26b73d828a106e175f8df872db1ba3d992abadf7 authored over 1 year ago
适配 thinkphp8.0
52c755a377fbc3ef93d656ba77aad7f30a63fdf7 authored over 1 year ago
52c755a377fbc3ef93d656ba77aad7f30a63fdf7 authored over 1 year ago
添加常驻内存型的单元测试 (#29)
54cb3cd90778dba3d78f517d87208ce27da93962 authored over 1 year ago
54cb3cd90778dba3d78f517d87208ce27da93962 authored over 1 year ago
重构单元测试架构
ef6b0d6f6ff237d72565a51390de96ccbd5d5740 authored over 1 year ago
ef6b0d6f6ff237d72565a51390de96ccbd5d5740 authored over 1 year ago
添加访问频率的单元测试
cb638cf32a2e7493fa66d289dd6b5fdfefdb9a07 authored over 1 year ago
cb638cf32a2e7493fa66d289dd6b5fdfefdb9a07 authored over 1 year ago
单元测试的基础父类设置为抽象类
9b55c2de55300beb4750b965a91dd60ac4a14dd0 authored over 1 year ago
9b55c2de55300beb4750b965a91dd60ac4a14dd0 authored over 1 year ago
添加 php 8.2 的单元测试
18c7231530609081da9020b95bf2630815187d73 authored over 1 year ago
18c7231530609081da9020b95bf2630815187d73 authored over 1 year ago
添加对自定义缓存的单元测试
3c12e9c05e43b54a258768ecda2bf087c8491c21 authored over 1 year ago
3c12e9c05e43b54a258768ecda2bf087c8491c21 authored over 1 year ago
添加单元测试与 workflows 流程
f2984fcc3665469bc065f67540df599ed01f72f5 authored over 1 year ago
f2984fcc3665469bc065f67540df599ed01f72f5 authored over 1 year ago
tp6.0 要求php 7.2+,因此调整composer.json中php版本依赖
da0a5202a94893d474d52bad29998c2ea5c0683b authored over 1 year ago
da0a5202a94893d474d52bad29998c2ea5c0683b authored over 1 year ago
解决类型转换出现的问题 (#15)
daa5bace5e4844a346af403a0c44d9ce4bf7af06 authored over 2 years ago
daa5bace5e4844a346af403a0c44d9ce4bf7af06 authored over 2 years ago
update readme.md
c63afa6a66ffdac03e37b1124b5120040ef7cea8 authored over 3 years ago
c63afa6a66ffdac03e37b1124b5120040ef7cea8 authored over 3 years ago
update readme.md
90802e69a1950cfed42c5a7164c31a15f66c0f22 authored over 3 years ago
90802e69a1950cfed42c5a7164c31a15f66c0f22 authored over 3 years ago
更新README.md
190c2750f7e2621990bd744495a9ea2966f2a5bf authored over 3 years ago
190c2750f7e2621990bd744495a9ea2966f2a5bf authored over 3 years ago
更新 README.md
198ab9db026541a4c9cd5ff1ede95da2ee74c3ff authored over 3 years ago
198ab9db026541a4c9cd5ff1ede95da2ee74c3ff authored over 3 years ago
支持在路由定义中设置中间件配置
b665b09a66b194d587de40b2908d8580fb091348 authored over 3 years ago
b665b09a66b194d587de40b2908d8580fb091348 authored over 3 years ago
配置文件添加设置算法驱动driver_name项
a0d1ad226942dd67c1342c69cc50697227e4b47b authored over 3 years ago
a0d1ad226942dd67c1342c69cc50697227e4b47b authored over 3 years ago
修复漏桶算法中计算wait_seconds计算错误问题
ebccb4cdcb714b90105c497fb15424813d3ec2d8 authored over 3 years ago
ebccb4cdcb714b90105c497fb15424813d3ec2d8 authored over 3 years ago
改进注释
a2ef40b6c2b1b8fb73c5dc4f68c2f160dd8e250e authored over 3 years ago
a2ef40b6c2b1b8fb73c5dc4f68c2f160dd8e250e authored over 3 years ago
新增响应体中设置速率限制的头部信息的开关
89b9206fd191cb93b69ceaab7dae1f1de7d907c5 authored over 3 years ago
89b9206fd191cb93b69ceaab7dae1f1de7d907c5 authored over 3 years ago
默认配置中设置visit_fail_response 值,去除 visit_fail_code 与
visit_fail_text 配置项,代码中依然保留这两项的兼容
a23fd94ab6b8b171999ab8e5ad85463b7f2de4fe authored over 3 years ago
强类型声明 (#10)
9467f74cbed13f24f6306f828de0ec3d77a09959 authored over 3 years ago
9467f74cbed13f24f6306f828de0ec3d77a09959 authored over 3 years ago
响应头状态码20x时注入速率限制信息
613d341e0288e2075b45e1feedf15ca35a6c649b authored over 3 years ago
613d341e0288e2075b45e1feedf15ca35a6c649b authored over 3 years ago
允许通过闭包自定义限流响应 (#8)
* 声明缓存驱动变量类型
* 声明限流驱动变量类型
* 允许通过闭包自定义限流响应
* 完善类型注释
979e7c36706857c686da222cf1f0c6c811f78edc authored over 3 years ago
可对要限制的请求类型进行自定义设置
f383fe3817480897470a4c0c9dcb3a4f4ada4df1 authored almost 4 years ago
f383fe3817480897470a4c0c9dcb3a4f4ada4df1 authored almost 4 years ago
README
5b646ad44a63162d7117e6dd6310d0ab362c79e6 authored almost 5 years ago
5b646ad44a63162d7117e6dd6310d0ab362c79e6 authored almost 5 years ago
只使用一个缓存键完成计数固定窗口
ec17a90f8a0c8cb076185484aa570c7a6411aff1 authored almost 5 years ago
ec17a90f8a0c8cb076185484aa570c7a6411aff1 authored almost 5 years ago
去掉无用的代码
14f01fe21beb4a785ccb71a668e8f127df6a383c authored almost 5 years ago
14f01fe21beb4a785ccb71a668e8f127df6a383c authored almost 5 years ago
代码整理
8ac8ff4c25ee424b397bd739057b868649427d04 authored almost 5 years ago
8ac8ff4c25ee424b397bd739057b868649427d04 authored almost 5 years ago
添加令牌桶算法
9bcef7b0b6cacd0e3c4632ac53dcd612b4b47468 authored almost 5 years ago
9bcef7b0b6cacd0e3c4632ac53dcd612b4b47468 authored almost 5 years ago
添加漏桶限流算法
3051af2e1eac0b63ef5a12a10728a4f5a092d636 authored almost 5 years ago
3051af2e1eac0b63ef5a12a10728a4f5a092d636 authored almost 5 years ago
drive_name保存类名字符串
a3ff70b8204c594cd8bff953dc4ead0b133e019d authored almost 5 years ago
a3ff70b8204c594cd8bff953dc4ead0b133e019d authored almost 5 years ago
时间取毫秒
721f4bfbfac85d03a2bb1a1f97e1bc04a2fc66d8 authored almost 5 years ago
721f4bfbfac85d03a2bb1a1f97e1bc04a2fc66d8 authored almost 5 years ago
代码整理
52f8346a58b926b13a58c1140392477041e0d6dc authored almost 5 years ago
52f8346a58b926b13a58c1140392477041e0d6dc authored almost 5 years ago
fix
b0f6503f076c13542876aa9da9427d0da9f937df authored almost 5 years ago
b0f6503f076c13542876aa9da9427d0da9f937df authored almost 5 years ago
重构中间件接口,便于扩展更多的限流算法 (#6)
* 目录整理
* 使用容器创建类和执行回调
* 链式操作
* 首次访问优化判断
* rename
* fix
* rename
8a7f07b0035ab2a8e36d19f501bc606c365f0a16 authored almost 5 years ago
优化
a5bed0e337844e33c44e784bf2e8dd2080a921ba authored almost 5 years ago
a5bed0e337844e33c44e784bf2e8dd2080a921ba authored almost 5 years ago
comment
2ae39695799b3e44700e1ce6952b52a487f05043 authored almost 5 years ago
2ae39695799b3e44700e1ce6952b52a487f05043 authored almost 5 years ago
doc
c3aa687eedd89876e5b46edab1842ebd1602726c authored almost 5 years ago
c3aa687eedd89876e5b46edab1842ebd1602726c authored almost 5 years ago
添加采用计数的限流算法的节流类
e02b0fdbc2f171b2dc2845a4fbc4c141887ed506 authored almost 5 years ago
e02b0fdbc2f171b2dc2845a4fbc4c141887ed506 authored almost 5 years ago
fix
1e12bc5ec735c6ccecbf5ddc1353615a932fc27b authored almost 5 years ago
1e12bc5ec735c6ccecbf5ddc1353615a932fc27b authored almost 5 years ago
代码整理
ab7dfe18234831cea091689777b15ce884bd1a0b authored almost 5 years ago
ab7dfe18234831cea091689777b15ce884bd1a0b authored almost 5 years ago
代码整理
65c7f351b4d0a24b03d768e228fe1d6858932cdb authored almost 5 years ago
65c7f351b4d0a24b03d768e228fe1d6858932cdb authored almost 5 years ago
构建Response Exception的基类方法
c269e0e2284207937c6ae1a1b7e8d94294bf6adb authored almost 5 years ago
c269e0e2284207937c6ae1a1b7e8d94294bf6adb authored almost 5 years ago
禁止访问时,改用抛出HttpResponseException
4880f3f972f4b1f02600f8f5a56b0974726aaee9 authored almost 5 years ago
4880f3f972f4b1f02600f8f5a56b0974726aaee9 authored almost 5 years ago
提取基础部分作为基类
105d492b40a32a4fa8b98a83cc81da38656bf6e3 authored almost 5 years ago
105d492b40a32a4fa8b98a83cc81da38656bf6e3 authored almost 5 years ago
set方法支持链式操作
c5303aaa892bef677cb0d168f1bfc9967e72b198 authored almost 5 years ago
c5303aaa892bef677cb0d168f1bfc9967e72b198 authored almost 5 years ago
公共数据改为静态属性,节省内存分配
fd913d17fc4edea22cb0af4e0073b3e750a5b022 authored almost 5 years ago
fd913d17fc4edea22cb0af4e0073b3e750a5b022 authored almost 5 years ago
设置缓存的方法
a67c63f13f80e46538c827708aad816da690048c authored almost 5 years ago
a67c63f13f80e46538c827708aad816da690048c authored almost 5 years ago
微优化
698907aca396093641500efb653f634c187e7c77 authored almost 5 years ago
698907aca396093641500efb653f634c187e7c77 authored almost 5 years ago
update reply
7354d38c7667db4142a5508e396ea4c655107eb4 authored about 5 years ago
7354d38c7667db4142a5508e396ea4c655107eb4 authored about 5 years ago
添加缓存键前缀,防止键值与其他应用冲突
f5977619eebd81e9b95e3ee3f4b5cdacb7197ea0 authored over 5 years ago
f5977619eebd81e9b95e3ee3f4b5cdacb7197ea0 authored over 5 years ago
update readme
024d64af25622af5cd0ae85bfb65add8ba73030f authored over 5 years ago
024d64af25622af5cd0ae85bfb65add8ba73030f authored over 5 years ago
去掉自动注册成全局的功能
96ca3d390641cdbe4a08cf3aa22b8aaf42cfc2b2 authored over 5 years ago
96ca3d390641cdbe4a08cf3aa22b8aaf42cfc2b2 authored over 5 years ago
Merge pull request #1 from top-think/hongweipeng-patch-1
[WIP]部署composer
cd3ae5a1ddcbec130a1ca5b6624a1d3038018446 authored over 5 years ago
Update composer.json
0eb6a98f846ca25d485648dd483eacdb79a332f3 authored over 5 years ago
0eb6a98f846ca25d485648dd483eacdb79a332f3 authored over 5 years ago
cleanup
1ee4a0b1c636b48efc67cbdcc6881e97f32535e8 authored over 5 years ago
1ee4a0b1c636b48efc67cbdcc6881e97f32535e8 authored over 5 years ago
增强频率定制
5b735695b3625046a41fd379914a09eccfa30094 authored over 5 years ago
5b735695b3625046a41fd379914a09eccfa30094 authored over 5 years ago
将速率限制 headers 添加到响应中 #2
9dc97b89ae1f88d8228a2b9fc7f633f8e9bd803e authored over 5 years ago
9dc97b89ae1f88d8228a2b9fc7f633f8e9bd803e authored over 5 years ago
项目名重命名
82c19216cde66fbce70ab9655641e1017671dcc0 authored over 5 years ago
82c19216cde66fbce70ab9655641e1017671dcc0 authored over 5 years ago
部署composer
e1ae82ae9e878073ac804afa2826f80e6be454c4 authored over 5 years ago
e1ae82ae9e878073ac804afa2826f80e6be454c4 authored over 5 years ago
修正错别字
b8363dd9f835ca8bc5c6ed2e80986ec49bf924e5 authored over 5 years ago
b8363dd9f835ca8bc5c6ed2e80986ec49bf924e5 authored over 5 years ago
readme.md
c909e613936d9aad2b8ba726bd6c1fb04712bd29 authored over 5 years ago
c909e613936d9aad2b8ba726bd6c1fb04712bd29 authored over 5 years ago
响应状态码为200才进行记录
d09de693d0006ad271f7e314428c108e8a5de52c authored over 5 years ago
d09de693d0006ad271f7e314428c108e8a5de52c authored over 5 years ago
使用独立配置文件
dafd025710fa73c0eabd44485848ae8bfab641b5 authored over 5 years ago
dafd025710fa73c0eabd44485848ae8bfab641b5 authored over 5 years ago
类名调整
6ea7e99afa4cea028fc2f829c8598b01786466c9 authored over 5 years ago
6ea7e99afa4cea028fc2f829c8598b01786466c9 authored over 5 years ago
更新自动注册
ea9d0c3951f14730ffaf9ac2a484ad1310bc1a45 authored over 5 years ago
ea9d0c3951f14730ffaf9ac2a484ad1310bc1a45 authored over 5 years ago
仿照think-multi-app自动注册中间件
ee84f204068b83b533ec10810f97bfeb1b9ddd7e authored over 5 years ago
ee84f204068b83b533ec10810f97bfeb1b9ddd7e authored over 5 years ago
更新命名空间
3f4a6a1930c0490a92a709cd5812716a6ed2f304 authored over 5 years ago
3f4a6a1930c0490a92a709cd5812716a6ed2f304 authored over 5 years ago
init
0d9627741e23c4dc64682d224e94baaded4ab1c8 authored over 5 years ago
0d9627741e23c4dc64682d224e94baaded4ab1c8 authored over 5 years ago