Skip to content

simplify readme for symfony flex and link to documentation #380

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 6, 2020
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