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.
Token Bucket alternatives and related libraries
Based on the "Miscellaneous" category
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest. Visit our partner's website for more details.
Do you think we are missing an alternative of Token Bucket or a related project?
Token Bucket RecommendationsThere 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
Be the first to add one!