PHP Classes
elePHPant
Icontem

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    
Last Updated Ratings Unique User Downloads Download Rankings
2003-05-09 (13 years ago) RSS 2.0 feedNot yet rated by the usersTotal: 631 All time: 4,807 This week: 904Up
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

  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  
 0%
Total:631
This week:0
All time:4,807
This week:904Up