Download the PHP package mata-sh/rate-limiter without Composer
On this page you can find all versions of the php package mata-sh/rate-limiter. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download mata-sh/rate-limiter
More information about mata-sh/rate-limiter
Files in mata-sh/rate-limiter
Download mata-sh/rate-limiter
More information about mata-sh/rate-limiter
Files in mata-sh/rate-limiter
Vendor mata-sh
Package rate-limiter
Short Description Robust rate limiting library for PHP with automatic fallback storage (Redis → APCu → filesystem).
License MIT
Package rate-limiter
Short Description Robust rate limiting library for PHP with automatic fallback storage (Redis → APCu → filesystem).
License MIT
Please rate this library. Is it a good library?
Informations about the package rate-limiter
Rate Limiter
Robust rate limiting library for PHP supporting filesystem storage backend for constrained environments.
Part of 🐢 mata-sh.
Features
- Supports Redis, APCu, Filesystem, and Session storage backends
- Zero configuration - works out of the box
- Flexible identifiers - IP-based, user-based, or custom
- PSR-3 logging support
- Sliding window rate limiting algorithm
- Proxy-aware IP detection (Cloudflare, X-Forwarded-For, etc.)
Installation
Requires PHP 8.1+. Redis or APCu recommended for production.
Usage
Identifiers
Configuration
Storage Backends
Explicitly configure the storage backend on initialization:
APCu (Recommended)
Fast in-memory cache. Install: pecl install apcu
Redis
Best for distributed systems.
Filesystem
JSON files with auto-cleanup. Default path: sys_get_temp_dir() . '/cache/rate_limit'
Session
Per-user limits only (not suitable for global IP-based limiting).
License
MIT
Related
Used by mata-dashboard and mata-node.
All versions of rate-limiter with dependencies
PHP Build Version
Package Version
The package mata-sh/rate-limiter contains the following files
Loading the files please wait ...