{"id":15199874,"url":"https://github.com/f1uder/livewire-throttling","last_synced_at":"2025-10-28T14:30:46.448Z","repository":{"id":56862248,"uuid":"526575447","full_name":"f1uder/livewire-throttling","owner":"f1uder","description":"Livewire trait (throttling). Limiting request processing speed","archived":false,"fork":false,"pushed_at":"2024-04-13T17:50:39.000Z","size":13,"stargazers_count":4,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-04-14T07:12:23.108Z","etag":null,"topics":["laravel","livewire","livewire-components","livewire-packages"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/f1uder.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-08-19T11:11:47.000Z","updated_at":"2023-08-19T13:35:28.000Z","dependencies_parsed_at":"2024-04-13T18:47:50.284Z","dependency_job_id":null,"html_url":"https://github.com/f1uder/livewire-throttling","commit_stats":{"total_commits":7,"total_committers":1,"mean_commits":7.0,"dds":0.0,"last_synced_commit":"ee63dc961c4af32979b2565a0cee72201e53cbac"},"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/f1uder%2Flivewire-throttling","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/f1uder%2Flivewire-throttling/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/f1uder%2Flivewire-throttling/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/f1uder%2Flivewire-throttling/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/f1uder","download_url":"https://codeload.github.com/f1uder/livewire-throttling/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238662659,"owners_count":19509641,"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","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":["laravel","livewire","livewire-components","livewire-packages"],"created_at":"2024-09-28T02:05:25.791Z","updated_at":"2025-10-28T14:30:41.158Z","avatar_url":"https://github.com/f1uder.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Livewire Throttling\n\n[![Latest Version on Packagist](https://img.shields.io/packagist/v/f1uder/livewire-throttling.svg?style=flat-square)](https://packagist.org/packages/f1uder/livewire-throttling)\n[![Total Downloads](https://img.shields.io/packagist/dt/f1uder/livewire-throttling.svg?style=flat-square)](https://packagist.org/packages/f1uder/livewire-throttling)\n\n\n## Installation\n\nYou can install the package via composer:\n\n```bash\ncomposer require f1uder/livewire-throttling\n```\n\n## Usage Livewire component\n\n```php\n\u003c?php\n\nnamespace App\\Http\\Livewire\\Test;\n\nuse Livewire\\Component;\nuse Nrox\\LivewireThrottling\\ThrottlingTrait;\n\nclass TestComponent extends Component\n{\n    use ThrottlingTrait; // use Trait\n    \n   /**\n    * Thrown out ValidationException\n    * name: throttle\n    */\n    public function test()\n    {\n        $this-\u003erateLimit('10'); // Limit 10 requests per minute\n    }\n    \n    public function testCallback()\n    {\n        $this-\u003erateLimit('10', function ($sec) {\n            abort(429);\n        });\n    }\n}\n```\n\n### Clear Rate Limit\n```php\n$this-\u003eclearRateLimit();\n```\n\n### Lang message error (support: en)\nAdd Russian lang\n\n`lang/ru.json`\n```php\n\"Too many requests, try again in :sec seconds.\": \"Слишком много запросов, повторите попытку через :sec сек.\"\n```\n\n## License\n\nThe MIT License (MIT). Please see [License File](LICENSE.md) for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ff1uder%2Flivewire-throttling","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ff1uder%2Flivewire-throttling","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ff1uder%2Flivewire-throttling/lists"}