PHPackages                             pskuza/leakybucket - 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. pskuza/leakybucket

ActiveLibrary[Caching](/categories/caching)

pskuza/leakybucket
==================

An implementation of the Leaky Bucket algorithm.

v0.21(9y ago)0141MITPHPPHP &gt;=5.4.0

Since Jul 5Pushed 9y ago1 watchersCompare

[ Source](https://github.com/pskuza/LeakyBucket)[ Packagist](https://packagist.org/packages/pskuza/leakybucket)[ RSS](/packages/pskuza-leakybucket/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (2)Versions (9)Used By (0)

LeakyBucket [![Build Status](https://camo.githubusercontent.com/1c0507db8d3078f02d5c6181bd5e27c366bcb272636079c23d224f5e9fa597a3/68747470733a2f2f7472617669732d63692e6f72672f70736b757a612f4c65616b794275636b65742e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/Cr0nixx/LeakyBucket)
==================================================================================================================================================================================================================================================================================================

[](#leakybucket-)

Leaky Bucket is an algorithm which works as follows:

1. There is a bucket.
2. The bucket has a defined leak and defined capacity.
3. The bucket leaks at a constant rate.
4. Overflows when full, will not add other drops to the bucket.

Install
-------

[](#install)

php composer.phar require "pskuza/leakybucket"

Usage
-----

[](#usage)

### Basic usage

[](#basic-usage)

```
