Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 4 additions & 18 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,29 +10,15 @@
**Symfony integration for [HTTPlug](http://httplug.io/).**


## Install
## Installation

Via Composer
To install the bundle with Symfony Flex, use the recipe:

``` bash
$ composer require php-http/httplug-bundle php-http/curl-client guzzlehttp/psr7
$ composer require php-http/httplug-bundle
```
HTTPlug works with any HTTP client implementation that provides a HTTPlug adapter. The command above installs the Guzzle client. For alternatives, see the [HTTPlug client list](http://docs.php-http.org/en/latest/clients.html).

Enable the bundle in your kernel:

``` php
<?php
// app/AppKernel.php

public function registerBundles()
{
$bundles = [
// ...
new Http\HttplugBundle\HttplugBundle(),
];
}
```
See the [bundle documentation](https://php-http.readthedocs.io/en/latest/integrations/symfony-bundle.html) for installation without Flex and for further options. There is also a [HTTPlug client list](http://docs.php-http.org/en/latest/clients.html) if you want to use a specific HTTP client.

## Documentation

Expand Down