PHPackages                             alexpts/php-rate-limiter - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Caching](/categories/caching)
4. /
5. alexpts/php-rate-limiter

ActiveLibrary[Caching](/categories/caching)

alexpts/php-rate-limiter
========================

Rate limiter

0.1.0(5y ago)1130[1 PRs](https://github.com/alexpts/php-rate-limiter/pulls)MITPHPPHP ~8.0CI failing

Since Mar 26Pushed 5mo ago1 watchersCompare

[ Source](https://github.com/alexpts/php-rate-limiter)[ Packagist](https://packagist.org/packages/alexpts/php-rate-limiter)[ Docs](https://github.com/alexpts/php-rate-limiter)[ RSS](/packages/alexpts-php-rate-limiter/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (2)Dependencies (4)Versions (5)Used By (0)

Rate Limiter
============

[](#rate-limiter)

[![SymfonyInsight](https://camo.githubusercontent.com/1f1c33d903e573be511a8672502ac42fdd891c97aeb8cea9ee6b2fcd2f89aa2c/68747470733a2f2f696e73696768742e73796d666f6e792e636f6d2f70726f6a656374732f32306532333965372d653030652d343661302d623332382d6132613331383634623834312f6269672e737667)](https://insight.symfony.com/projects/20e239e7-e00e-46a0-b328-a2a31864b841)[![Build Status](https://camo.githubusercontent.com/7a5fcc2f40b421020ac57a401214896e73aaf263c850565621ac4f342993e38e/68747470733a2f2f7472617669732d63692e6f72672f616c65787074732f7068702d726174652d6c696d697465722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/alexpts/php-rate-limiter)[![Code Coverage](https://camo.githubusercontent.com/3c5c37e80b9d857a072086e8f81bc78f5e4e7247b209e7d296eee33a9fcdc95c/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f616c65787074732f7068702d726174652d6c696d697465722f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/alexpts/php-rate-limiter/?branch=master)[![Code Climate](https://camo.githubusercontent.com/7f54c0dcb34642e1c0bf962849dd718b8eaa3c990e5bea276fbfb1fb42d9da25/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f616c65787074732f7068702d726174652d6c696d697465722f6261646765732f6770612e737667)](https://codeclimate.com/github/alexpts/php-rate-limiter)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/0b1e66853161d8ae2655f062a9f2478e51e8faeeb809e6e6688870958a0c1b79/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f616c65787074732f7068702d726174652d6c696d697465722f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/alexpts/php-rate-limiter/?branch=master)

Rate limiter + PSR-15 middleware

#### Install

[](#install)

`composer require alexpts/php-rate-limiter`

#### Example

[](#example)

```
