Installation
Require the package. The service provider is auto-discovered — no manual registration, and no configuration is needed to start:
composer require roundly-consulting/http-client-rate-limits-for-laravelThe config file is optional — every key has a default. Publish it only to define named profiles or change the store, deferrer or events:
php artisan vendor:publish --tag="http-client-rate-limits-config"Database store migration
Only if you use the DatabaseStore, publish and run its migration. It creates the http_client_rate_limits hits table and the http_client_rate_limit_owners table the store locks and keeps adaptive penalties in:
php artisan vendor:publish --tag="http-client-rate-limits-migrations"
php artisan migrateThe migration is not loaded automatically — php artisan migrate only creates the tables once you have published it into your app’s database/migrations. Publishing again is idempotent: it overwrites the file it already placed instead of adding a second copy.
Show your open-source love
This package is free and MIT-licensed. If it saves you time, a one-off donation or a Patreon membership keeps it maintained, tested and documented.
More ways to support, including cryptoBy donating, you agree to our donation terms.
Want this built into your product?
We integrate our packages into custom Laravel and AI builds. Tell us what you're working on and we'll reply within 48 hours.