PHP Classes

CTokenBucket: Token bucket filter for a variety of purposes

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


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: 284 Down5 in The Netherlands The Netherlands Down

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

 Version Control Unique User Downloads Download Rankings  
This week:0
All time:4,951
This week:560Up