switon/throttle

Request throttling and rate limiting for Switon Framework

Maintainers

Package info

github.com/switon-php/throttle

Documentation

pkg:composer/switon/throttle

Statistics

Installs: 0

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

v1.0.0 2026-05-10 04:22 UTC

This package is auto-updated.

Last update: 2026-05-10 04:22:44 UTC


README

Request throttling and rate limiting for Switon Framework.

Installation

composer require switon/throttle

Requirements: PHP 8.3+, Redis

Quick Start

use Switon\Throttle\Attribute\RateLimit;

class ApiController
{
    #[RateLimit('10/m')]
    public function search(): array
    {
        return $this->doSearch();
    }
}

Docs: https://docs.switon.dev/latest/throttle

License

MIT.