{"id":23107939,"url":"https://github.com/andrewdyer/predis-request-limiter","last_synced_at":"2026-02-05T07:31:11.218Z","repository":{"id":62485848,"uuid":"196004997","full_name":"andrewdyer/predis-request-limiter","owner":"andrewdyer","description":"Request rate limiting using Predis.","archived":false,"fork":false,"pushed_at":"2024-12-22T19:14:18.000Z","size":12,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-04-17T19:50:04.152Z","etag":null,"topics":["framework-agnostic","php","predis","rate-limit","redis"],"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/andrewdyer.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":"2019-07-09T12:33:37.000Z","updated_at":"2024-12-22T19:13:20.000Z","dependencies_parsed_at":"2023-02-15T01:46:39.957Z","dependency_job_id":null,"html_url":"https://github.com/andrewdyer/predis-request-limiter","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/andrewdyer/predis-request-limiter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrewdyer%2Fpredis-request-limiter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrewdyer%2Fpredis-request-limiter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrewdyer%2Fpredis-request-limiter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrewdyer%2Fpredis-request-limiter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/andrewdyer","download_url":"https://codeload.github.com/andrewdyer/predis-request-limiter/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrewdyer%2Fpredis-request-limiter/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29115520,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-05T05:31:32.482Z","status":"ssl_error","status_checked_at":"2026-02-05T05:31:29.075Z","response_time":65,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["framework-agnostic","php","predis","rate-limit","redis"],"created_at":"2024-12-17T01:16:28.412Z","updated_at":"2026-02-05T07:31:11.200Z","avatar_url":"https://github.com/andrewdyer.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003ePredis Request Limiter\u003c/h1\u003e\n\n\u003cp align=\"center\"\u003eRequest rate limiting using Predis.\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n    \u003ca href=\"https://packagist.org/packages/andrewdyer/predis-request-limiter\"\u003e\u003cimg src=\"https://poser.pugx.org/andrewdyer/predis-request-limiter/downloads?style=for-the-badge\" alt=\"Total Downloads\"\u003e\u003c/a\u003e\n    \u003ca href=\"https://packagist.org/packages/andrewdyer/predis-request-limiter\"\u003e\u003cimg src=\"https://poser.pugx.org/andrewdyer/predis-request-limiter/v?style=for-the-badge\" alt=\"Latest Stable Version\"\u003e\u003c/a\u003e\n    \u003ca href=\"https://packagist.org/packages/andrewdyer/predis-request-limiter\"\u003e\u003cimg src=\"https://poser.pugx.org/andrewdyer/predis-request-limiter/license?style=for-the-badge\" alt=\"License\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n## License\n\nLicensed under MIT. Totally free for private or commercial projects.\n\n## Installation\n\n```text\ncomposer require andrewdyer/predis-request-limiter\n```\n\n## Usage\n\n```php\n// Create new predis client instance\n$predis = new Predis\\Client();\n\n// Create new limiter instance\n$limiter = new Anddye\\PredisRequestLimiter\\Limiter($predis, 100);\n$limiter-\u003esetRateLimit(10, 30)\n    -\u003esetStorageKey('api:limit:%s');\n\nif ($limiter-\u003ehasExceededRateLimit()) {\n    // Too many requests has been made, display error message\n} else {\n    $limiter-\u003eincrementRequestCount();\n}\n```\n\n## Support\n   \nIf you are having any issues with this library, then please feel free to contact me on [Twitter](https://twitter.com/andyer92).\n\nIf you think you've found an bug, please report it using the [issue tracker](https://github.com/andrewdyer/predis-request-limiter/issues), or better yet, fork the repository and submit a pull request.\n\nIf you're using this package, I'd love to hear your thoughts!\n\n## Useful Links\n\n*   [Redis](http://redis.io/)\n*   [Predis](https://github.com/nrk/predis)\n*   [Predis Adaptor](https://github.com/andrewdyer/predis-request-limiter)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandrewdyer%2Fpredis-request-limiter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandrewdyer%2Fpredis-request-limiter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandrewdyer%2Fpredis-request-limiter/lists"}