Skip to content

Commit

Permalink
Readme update
Browse files Browse the repository at this point in the history
  • Loading branch information
dvanderburg committed Jan 18, 2017
1 parent c1bebea commit 6067dd3
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# silex-batched-request
# Silex Batched Request Service Provider
Silex service provider to add batched requests. Usage and implementation roughly based on <a href="https://developers.facebook.com/docs/graph-api/making-multiple-requests">making batch requests</a> with Facebook's Graph API.

Batching requests allows you to send multiple requests at once, allowing you to perform multiple GET, POST, etc. requests in a single HTTP request. A batched request returns an array of responses with relevant headers, error or success codes, and response bodies.
Expand All @@ -15,10 +15,11 @@ composer install dvanderburg/silex-batched-request

Register the service provider as part of your application bootstrap process.
```
$app->register(new App\Api\Batch\BatchRequestServiceProvider(), array(
'batchrequest.url' => "batch" // this is the default value
));
$app->register(new App\Api\Batch\BatchRequestServiceProvider(), array(
'batchrequest.url' => "batch" // this is the default value
));
```


## Example

0 comments on commit 6067dd3

Please sign in to comment.