godsdev/rate-limiter-interface
Composer 安装命令:
composer require godsdev/rate-limiter-interface
包简介
limits number of its calls per time
README 文档
README
Limits the number of requests per time.
- There are two parameters:
periodandrate. - A request is a call of the
inc()method. Aninc()method begins to return false if number of requests perperiodis higher than arate. Unit ofperiodMAY be second or any other time unit.
Test notes
test.sh runs the PHPUnit tests.
test-coverage.sh generates the PHPUnit coverage analysis to the temp folder.
If the php -v command does not show the with Xdebug line, note that for coverage testing you might need to manually edit the php.ini used by your PHP CLI in order to enable the
; XDEBUG Extension
统计信息
- 总下载量: 35
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2017-07-07