PHPackages                             guilhermednt/http-service-bundle - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. guilhermednt/http-service-bundle

ActiveSymfony-bundle

guilhermednt/http-service-bundle
================================

Symfony HttpServiceBundle

05PHP

Since Jan 16Pushed 12y ago1 watchersCompare

[ Source](https://github.com/guilhermednt/http-service-bundle)[ Packagist](https://packagist.org/packages/guilhermednt/http-service-bundle)[ RSS](/packages/guilhermednt-http-service-bundle/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

http-service-bundle
===================

[](#http-service-bundle)

Currently, this bundle turns Guzzle HTTP Client into a service to allow application wide configuration (like curl proxy settings).

It uses a `ClientFactory` so that you can adapt it to other HTTP Clients.

Installation
------------

[](#installation)

### Step 1: Add package as requirement in Composer

[](#step-1-add-package-as-requirement-in-composer)

Add the bundle to your `composer.json`:

```
{
    "require": {
        "guilhermednt/http-service-bundle": "dev-master"
    }
}
```

Then run the update command:

```
$ composer update guilhermednt/http-service-bundle
```

### Step 2: Tell Symfony2 about it.

[](#step-2-tell-symfony2-about-it)

Enable the bundle in your `AppKernel.php`:

```
