{"id":18746094,"url":"https://github.com/diloabininyeri/throttle","last_synced_at":"2025-10-12T08:08:07.874Z","repository":{"id":57090335,"uuid":"308739869","full_name":"diloabininyeri/throttle","owner":"diloabininyeri","description":"PHP HTTP rate limit  library helps catch extremely unnecessary HTTP requests, allows you to manage a certain number of HTTP requests in a certain time frame","archived":false,"fork":false,"pushed_at":"2020-11-08T19:02:15.000Z","size":202,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-12T08:08:07.202Z","etag":null,"topics":["composer-package","http","php-library","rate-limit","redis","throttle","union"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/diloabininyeri.png","metadata":{"files":{"readme":"readme.MD","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-10-30T20:43:34.000Z","updated_at":"2025-08-31T11:49:13.000Z","dependencies_parsed_at":"2022-08-20T15:30:20.295Z","dependency_job_id":null,"html_url":"https://github.com/diloabininyeri/throttle","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/diloabininyeri/throttle","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/diloabininyeri%2Fthrottle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/diloabininyeri%2Fthrottle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/diloabininyeri%2Fthrottle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/diloabininyeri%2Fthrottle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/diloabininyeri","download_url":"https://codeload.github.com/diloabininyeri/throttle/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/diloabininyeri%2Fthrottle/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279010802,"owners_count":26084807,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-12T02:00:06.719Z","response_time":53,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["composer-package","http","php-library","rate-limit","redis","throttle","union"],"created_at":"2024-11-07T16:20:52.239Z","updated_at":"2025-10-12T08:08:07.851Z","avatar_url":"https://github.com/diloabininyeri.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"#### PHP rate limit library with redis  \ninstall with composer\n```console\ncomposer require zeus/throttle\n```\nSets http request limitations, such as only 100 accesses in 10 minutes\nPowerful redis handles HTTP requests, you can easily integrate it into all api or projects\n\n```php\nuse Throttle\\Throttle;\nuse Throttle\\Time;\n\n\n\n$throttle = new Throttle(\n    new Time(60, 25)\n);\n\n$throttle-\u003ecommit();\n\n\nif ($throttle-\u003eisHasAccessLimit()) {\n    print 'request can go next';\n} else {\n    print 'max request amount';\n}\n\n\n\n\n```\n#### if you want to configure a redis client\n\n```php\nuse Throttle\\Throttle;\nuse Throttle\\Time;\nuse Throttle\\Redis;\n\n\nRedis::setRedisClient(new \\Predis\\Client($params));\n\n$throttle = new Throttle(\n    new Time(60, 25)\n);\n\n$throttle-\u003ecommit();\n\n\nif ($throttle-\u003eisHasAccessLimit()) {\n    print 'request can go next';\n} else {\n    print 'max request amount';\n}\n\n```\nGet detail \n\n```php\n\n$throttle-\u003egetDetail()-\u003etoArray();\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdiloabininyeri%2Fthrottle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdiloabininyeri%2Fthrottle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdiloabininyeri%2Fthrottle/lists"}