Download the PHP package nsp-team/webman-throttler without Composer
On this page you can find all versions of the php package nsp-team/webman-throttler. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download nsp-team/webman-throttler
More information about nsp-team/webman-throttler
Files in nsp-team/webman-throttler
Download nsp-team/webman-throttler
More information about nsp-team/webman-throttler
Files in nsp-team/webman-throttler
Vendor nsp-team
Package webman-throttler
Short Description very Very easy to use a current limiting component, the code is very simple, based on the webman framework.
License MIT
Package webman-throttler
Short Description very Very easy to use a current limiting component, the code is very simple, based on the webman framework.
License MIT
Please rate this library. Is it a good library?
Informations about the package webman-throttler
webman-throttler
限流类(Throttler)提供了一种非常简单的方法,可以将用户要执行的活动限制为在设定的时间段内只能进行一定次数的尝试。这最常用于对 API 进行速率限制,或限制用户针对表单进行的尝试次数,以帮助防止暴力攻击。 该类可用于你根据设置的时间来进行限制的操作。
限流类
- 全局中间件,整个应用接口限流,
- 路由中间件,某些功能接口请求速率限制
缓存依据的是Support\Cache的 instance()
, 其他类只要是实现 get($key, $default = null)
, set($key, $value, $ttl = null)
, delete($key)
funtion就行.
安装
composer require nsp-team/webman-throttler
基本用法
默认 开启全局中间件限流
你也可以启用路由中间件,控制接口请求速率限制 例如:
All versions of webman-throttler with dependencies
PHP Build Version
Package Version
The package nsp-team/webman-throttler contains the following files
Loading the files please wait ....