Dingo\Api\Console\Command\Routes::routeRateLimit PHP Method

routeRateLimit() protected method

Display the routes rate limiting requests per second. This takes the limit and divides it by the expiration time in seconds to give you a rough idea of how many requests you'd be able to fire off per second on the route.
protected routeRateLimit ( Route $route ) : null | string
$route Dingo\Api\Routing\Route
return null | string
    protected function routeRateLimit($route)
    {
        list($limit, $expires) = [$route->getRateLimit(), $route->getRateLimitExpiration()];
        if ($limit && $expires) {
            return sprintf('%s req/s', round($limit / ($expires * 60), 2));
        }
    }