PHPackages                             yuanzh-one/webman-throttle - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. yuanzh-one/webman-throttle

ActiveLibrary

yuanzh-one/webman-throttle
==========================

Webman框架限流中间件

v1.0.11(3y ago)13MITPHPPHP &gt;=7.4

Since Mar 14Pushed 3y ago1 watchersCompare

[ Source](https://github.com/yuanzh-one/webman-throttle)[ Packagist](https://packagist.org/packages/yuanzh-one/webman-throttle)[ RSS](/packages/yuanzh-one-webman-throttle/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (1)Versions (13)Used By (0)

webman-throttle
===============

[](#webman-throttle)

作用
--

[](#作用)

通过本中间件可限定用户在一段时间内的访问次数，可用于保护接口防爬防爆破的目的。

安装
--

[](#安装)

`composer require yuanzh-one/webman-throttle`

安装后会自动为项目生成 config/plugin/yuanzh/throttle/app.php (***注意:任何时候你都不应该修改最后一行的 hash注释***)配置文件，安装后组件不会自动启用，需要手动设置。

开启
--

[](#开启)

插件以中间件的方式进行工作，因此它的开启与其他中间件一样，例如在全局中间件中使用:

```
