PHP code example of viliy / throttle
1. Go to this page and download the library: Download viliy/throttle library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
viliy / throttle example snippets
return []; // see to .throttle.yml
'services' => [
\FastD\ServiceProvider\CacheServiceProvider::class,
\FastD\ServiceProvider\LoggerServiceProvider::class,
\FastD\ServiceProvider\RouteServiceProvider::class,
// added the end
\Viliy\Throttle\Provider\ThrottleRequestProvider::class,
],