This is a threadsafe implementation of the Token Bucket algorithm in PHP. You can use a token bucket to limit an usage rate for a resource (e.g. a stream bandwidth or an API usage).

The token bucket is an abstract metapher which doesn't have a direction of the resource consumption. I.e. you can limit a rate for consuming or producing. E.g. you can limit the consumption rate of a third party API service, or you can limit the usage rate of your own API service.

Code Quality Rank: L5
Monthly Downloads: 3,533
Programming language: PHP
License: Do What The F*ck You Want To Public License

Token Bucket alternatives and related libraries

Based on the "Miscellaneous" category

Do you think we are missing an alternative of Token Bucket or a related project?

Add another 'Miscellaneous' Library

Token Bucket Recommendations

There are no recommendations yet. Be the first to promote Token Bucket!

Have you used Token Bucket? Share your experience. Write a short recommendation and Token Bucket, you and your project will be promoted on Awesome PHP.
Recommend Token Bucket

Recently added Token Bucket resources

Do you know of a usefull tutorial, book or news relevant to Token Bucket?
Be the first to add one!