{"id":95434,"library":"bandwidth-throttle-token-bucket","title":"Bandwidth Throttle Token Bucket","description":"Implementation of the Token Bucket algorithm for rate limiting.","status":"active","version":"2.0.0","language":"php","source_language":null,"source_url":"https://github.com/bandwidth-throttle/token-bucket","tags":["rate-limiting","throttle","token-bucket"],"install":[{"cmd":"composer require bandwidth-throttle/token-bucket","lang":"bash","label":"composer require"}],"dependencies":[],"imports":[{"symbol":"TokenBucket","correct":"use BandwidthThrottle\\TokenBucket\\TokenBucket;"}],"quickstart":{"code":"use BandwidthThrottle\\TokenBucket\\TokenBucket;\n\n$bucket = new TokenBucket(100, 10);\nif ($bucket->consume(1)) {\n    // proceed\n}","lang":"php","description":"Create a token bucket with capacity 100 and rate 10 tokens per second."},"warnings":[],"env_vars":null,"search_vec":"'algorithm':10 'bandwidth':1 'bucket':4,9,20 'implement':5 'limit':13,16 'rate':12,15 'rate-limit':14 'throttl':2,17 'token':3,8,19 'token-bucket':18","created_at":"2026-06-19T10:31:03.742068+00:00","updated_at":"2026-06-19T10:31:03.742068+00:00","problems":[],"ecosystem":"packagist","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/bandwidth-throttle/token-bucket","github":"https://github.com/bandwidth-throttle/token-bucket","docs":null,"changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["networking"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-19","next_check":"2026-12-16","install_tag":null}}