Algorithms: CTokenBucket
Rene Kluwen (contact me)
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
Click here for detailed information about this class on phpclasses.org