viliy/throttle

There is no license information available for the latest version (v0.1.2) of this package.

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

This package is auto-updated.

Last update: 2024-04-07 14:44:56 UTC


README

usage

composer require viliy/throttle dev-master

vim config/throttle.php

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

cp vendor/viliy/throttle/.throttle.yml .throttle.yml

vim config/app.php

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