codificio / laravel-batched-request
Service provider for batched requests in Laravel framework (Laravel PHP).
Installs: 86
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/codificio/laravel-batched-request
Requires
- php: >=7.0
- flow/jsonpath: ^0.4.0
- laravel/lumen-framework: 6.*
Requires (Dev)
- phpunit/phpunit: ^6.0
README
This package is based on https://github.com/dvanderburg/lumen-batched-request.
Middleware
In addition to that package, there is also a middleware which override the base ThrottleRequests
middleware.
It is used to avoid API rate limit for the requests inside the batch.
Replace the default middleware:
Illuminate\Routing\Middleware\ThrottleRequests
with:
Codificio\BatchedRequest\ThrottleRequests
in the app\Http\Kernel.php
file.