PHPackages                             jeroenvisser101/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. [Security](/categories/security)
4. /
5. jeroenvisser101/leakybucket

ActiveLibrary[Security](/categories/security)

jeroenvisser101/leakybucket
===========================

An implementation of the Leaky Bucket algorithm.

0.1.5(9y ago)44116.6k↓33.8%11[1 issues](https://github.com/jeroenvisser101/LeakyBucket/issues)[1 PRs](https://github.com/jeroenvisser101/LeakyBucket/pulls)MITPHPPHP &gt;=5.4.0

Since Jul 5Pushed 7y ago4 watchersCompare

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

READMEChangelog (1)Dependencies (2)Versions (8)Used By (0)

LeakyBucket [![Build Status](https://camo.githubusercontent.com/d3494d22cc9a3c917c1ab0df1075233c13321a216913caa05f3e8376c04f7a34/68747470733a2f2f7472617669732d63692e6f72672f6a65726f656e7669737365723130312f4c65616b794275636b65742e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/jeroenvisser101/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.

Usage
-----

[](#usage)

### Basic usage

[](#basic-usage)

```
