PHP Classes

CTokenBucket: Token bucket filter for a variety of purposes

Recommend this page to a friend!
     
  Info   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not yet rated by the usersTotal: 647 All time: 4,953 This week: 560Up
Version License Categories
tokenbucket 1.0.0Public DomainAlgorithms
Description 

Author

This class implements a token bucket filter. Token bucket filters are used in software engineering to limit a number of events within a certain time.

An example is how ISP's limit bandwidth to a fixed Kilobyte per second rate.

A typical usage of this class is limiting the amount of posts to, for example, a guestbook or forum for a user of your site.

An example is included in the source file. Call as: http://yourdomain/../tokenbucket.php/demo

Picture of Rene Kluwen
Name: Rene Kluwen <contact>
Classes: 6 packages by
Country: The Netherlands The Netherlands
Age: 54
All time rank: 742 in The Netherlands The Netherlands
Week rank: 164 Down5 in The Netherlands The Netherlands Down

  Files folder image Files (2)  
File Role Description
Accessible without login Plain text file license.txt Lic. License
Plain text file tokenbucket.php Class Class file

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:647
This week:0
All time:4,953
This week:560Up