Download the PHP package ideasoft/http-batch-bundle without Composer
On this page you can find all versions of the php package ideasoft/http-batch-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download ideasoft/http-batch-bundle
More information about ideasoft/http-batch-bundle
Files in ideasoft/http-batch-bundle
Package http-batch-bundle
Short Description Http batch server implementation for symfony via sub requests.
License MIT
Informations about the package http-batch-bundle
HttpBatchBundle
HttpBatchBundle is a plugin that allows you to packaging a set of requests by implementing multipart/batch
method for Symfony. This bundle will allow you to decrease requests count and lower costs welcomed.
How multipart/batch
works?
HTTP multipart/batch
is a format for packaging multiple HTTP requests in a single request. You can read this draft for more detail: https://tools.ietf.org/id/draft-snell-http-batch-00.html
Installing HttpBatchBundle
The easiest way to install HttpBatchBundle is through composer.
Don't forget to register in AppKernel.php
Now lets configurate it!
Configuration
Routing
Add a route for HttpBatchBundle like that to your routing.yml
Sevice Registration
Register HttpBatchBundle services. Add this line to your services.yml
That's all. Now you can use http batch implementation on your symfony project.
Your batch request url is http://your-domain/batch.
You should post your batch request to this url.You can change it from routing.yml if you want. You can test it with Postman or anything else.
Do you need a multipart/batch client for PHP?
You're lucky! You can try https://github.com/IdeasoftLabs/http-batch-client
All versions of http-batch-bundle with dependencies
guzzlehttp/guzzle Version ^6.2
symfony/framework-bundle Version >=2.8
sensio/framework-extra-bundle Version >=2.8