viily/throttle

此包最新版本(v0.1.2)没有提供许可证信息。

v0.1.2 2019-01-07 02:24 UTC

This package is auto-updated.

Last update: 2024-09-07 15:38:27 UTC


README

使用方法

composer require viliy/throttle dev-master

编辑 config/throttle.php

<?php
    return []; // see to .throttle.yml

复制 vendor/viliy/throttle/.throttle.yml 到 .throttle.yml

编辑 config/app.php

    'services' => [
        \FastD\ServiceProvider\CacheServiceProvider::class,
        \FastD\ServiceProvider\LoggerServiceProvider::class,
        \FastD\ServiceProvider\RouteServiceProvider::class,
        
        // added the end
        \Viliy\Throttle\Provider\ThrottleRequestProvider::class,
    ],