2017 © Pedro Peláez
 

library http-batch-bundle

Http batch server implementation for symfony via sub requests.

image

ideasoft/http-batch-bundle

Http batch server implementation for symfony via sub requests.

  • Monday, January 15, 2018
  • by ideasoft
  • Repository
  • 3 Watchers
  • 21 Stars
  • 1,827 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 4 Forks
  • 0 Open issues
  • 3 Versions
  • 58 % Grown

The README.md

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., (*1)

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, (*2)

Installing HttpBatchBundle

The easiest way to install HttpBatchBundle is through composer., (*3)

composer require ideasoft/http-batch-bundle

Don't forget to register in AppKernel.php, (*4)

$bundles = [
            ...
            new \Ideasoft\HttpBatchBundle\HttpBatchBundle()
        ];

Now lets configurate it!, (*5)

Configuration

Routing

Add a route for HttpBatchBundle like that to your routing.yml, (*6)

http_batch:
    resource: "@HttpBatchBundle/Controller/"
    type:     annotation

Sevice Registration

Register HttpBatchBundle services. Add this line to your services.yml, (*7)

imports:
    ...
    - { resource: "@HttpBatchBundle/Resources/config/services.yml" }

That's all. Now you can use http batch implementation on your symfony project., (*8)

Your batch request url is http://your-domain/batch., (*9)

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., (*10)

Do you need a multipart/batch client for PHP?

You're lucky! You can try https://github.com/IdeasoftLabs/http-batch-client, (*11)

The Versions

15/01 2018

dev-master

9999999-dev

Http batch server implementation for symfony via sub requests.

  Sources   Download

MIT

The Requires

 

The Development Requires

by IdeasoftLabs

25/12 2016

0.2

0.2.0.0

Http batch server implementation for symfony via sub requests.

  Sources   Download

MIT

The Requires

 

The Development Requires

by IdeasoftLabs

21/12 2016

0.1

0.1.0.0

Http batch server implementation for symfony via sub requests.

  Sources   Download

MIT

The Requires

 

The Development Requires

by IdeasoftLabs