PHPackages                             e-moe/guzzle6-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. [HTTP &amp; Networking](/categories/http)
4. /
5. e-moe/guzzle6-bundle

ActiveSymfony-bundle[HTTP &amp; Networking](/categories/http)

e-moe/guzzle6-bundle
====================

Integrates Guzzle 6 into your Symfony application

v1.3.0(5y ago)11259.2k↑94%11[3 issues](https://github.com/e-moe/guzzle6-bundle/issues)[1 PRs](https://github.com/e-moe/guzzle6-bundle/pulls)MITPHPPHP &gt;=7.2.5CI failing

Since Jun 14Pushed 3y ago1 watchersCompare

[ Source](https://github.com/e-moe/guzzle6-bundle)[ Packagist](https://packagist.org/packages/e-moe/guzzle6-bundle)[ Docs](https://github.com/e-moe/guzzle6-bundle)[ RSS](/packages/e-moe-guzzle6-bundle/feed)WikiDiscussions master Synced today

READMEChangelog (2)Dependencies (9)Versions (23)Used By (0)

Symfony Guzzle6Bundle
=====================

[](#symfony-guzzle6bundle)

[![Latest Stable Version](https://camo.githubusercontent.com/148bd45e55ed1a3887a7f352d860b6dfdc24cf76481cc3d95afd4614fabe6b9e/68747470733a2f2f706f7365722e707567782e6f72672f652d6d6f652f67757a7a6c65362d62756e646c652f762f737461626c65)](https://packagist.org/packages/e-moe/guzzle6-bundle)[![Total Downloads](https://camo.githubusercontent.com/5f27af06fa3449d8dc3c45be1635512ec8a96efa65d1d9dbc4cfee656a8f2319/68747470733a2f2f706f7365722e707567782e6f72672f652d6d6f652f67757a7a6c65362d62756e646c652f646f776e6c6f616473)](https://packagist.org/packages/e-moe/guzzle6-bundle)[![Latest Unstable Version](https://camo.githubusercontent.com/58e7f1a4c60f5c264cb60022624da32e310c14fd0a7f88dddd2776836b58dafc/68747470733a2f2f706f7365722e707567782e6f72672f652d6d6f652f67757a7a6c65362d62756e646c652f762f756e737461626c65)](https://packagist.org/packages/e-moe/guzzle6-bundle)[![License](https://camo.githubusercontent.com/8150bd37b8e2782cdabd372bc01675950ee750293b7cc9c21205e6be910caa64/68747470733a2f2f706f7365722e707567782e6f72672f652d6d6f652f67757a7a6c65362d62756e646c652f6c6963656e7365)](https://packagist.org/packages/e-moe/guzzle6-bundle)

[![Build Status](https://camo.githubusercontent.com/b5146080b69604cfb61b0389594d90346a58b645653fef6269efee4997ec683a/68747470733a2f2f7472617669732d63692e6f72672f652d6d6f652f67757a7a6c65362d62756e646c652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/e-moe/guzzle6-bundle)[![Coverage Status](https://camo.githubusercontent.com/50b38eeff64d8cf31030f3e08f47e45d0e3714ca2e6a5bd204987fe6488468ee/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f652d6d6f652f67757a7a6c65362d62756e646c652f62616467652e7376673f6272616e63683d6d617374657226736572766963653d676974687562)](https://coveralls.io/github/e-moe/guzzle6-bundle?branch=master)[![SensioLabsInsight](https://camo.githubusercontent.com/5dd7968c2dda1e9d05e00ba04a67f91466ef10191c477dba09fc22fc175cff17/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f62373833323565302d613835662d343737612d626439382d3133616231613535313734322f6d696e692e706e67)](https://insight.sensiolabs.com/projects/b78325e0-a85f-477a-bd98-13ab1a551742)

This bundle integrates [Guzzle 6.x](http://guzzlephp.org/) into Symfony. Guzzle is a PHP framework for building RESTful web service clients.

Requirements
------------

[](#requirements)

- PHP 5.6 or above
- Symfony 2.7 or above (including Symfony 3.x, 4.x, 5.x)

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

[](#installation)

To install this bundle, run the command below and you will get the latest version by [Packagist](https://packagist.org/packages/e-moe/guzzle6-bundle).

```
composer require e-moe/guzzle6-bundle
```

To use the newest (maybe unstable) version please add following into your composer.json:

```
{
    "require": {
        "e-moe/guzzle6-bundle": "dev-master"
    }
}
```

Usage
-----

[](#usage)

Load bundle in AppKernel.php (should be done automatically if you are using Symfony Flex):

```
new Emoe\GuzzleBundle\EmoeGuzzleBundle(),
```

Configuration in config.yml (optional):

```
emoe_guzzle:
    log:
        enabled: true # Logging requests to Monolog
        format: 'Guzzle: [{ts}] "{method} {uri} HTTP/{version}" {code}' # Optional log format customization
```

see more about [log format syntax](https://github.com/guzzle/guzzle/blob/master/src/MessageFormatter.php#L12).

Using Guzzle in controllers:

```
$client   = $this->get('guzzle.client');
$response = $client->get('http://example.com');
```

Using Guzzle in your own services:

```
  application.my_service:
    class: App\Service\MyService
    arguments:
      - "@guzzle.client"
```

or you can just use [autowire](https://symfony.com/doc/current/service_container.html#the-autowire-option) feature with `GuzzleHttp\ClientInterface` type hint.

Features
--------

[](#features)

### Symfony Debug Profiler

[](#symfony-debug-profiler)

[![Guzzle Requests](/src/Resources/doc/img/profiler.png "Symfony Debug Toolbar - Guzzle Logs")](/src/Resources/doc/img/profiler.png)

### Symfony Debug Timeline

[](#symfony-debug-timeline)

[![Guzzle Timeline Integration](/src/Resources/doc/img/timeline.png "Symfony Debug Toolbar - Timeline Integration")](/src/Resources/doc/img/timeline.png)

### Symfony Debug Toolbar

[](#symfony-debug-toolbar)

[![Guzzle Toolbar Integration](/src/Resources/doc/img/toolbar.png "Symfony Debug Toolbar Integration")](/src/Resources/doc/img/toolbar.png)

### Symfony Debug Logs (Monolog Integration)

[](#symfony-debug-logs-monolog-integration)

[![Guzzle Monolog Logs](/src/Resources/doc/img/logs.png "Symfony Debug Toolbar Logs")](/src/Resources/doc/img/logs.png)

Suggestions
-----------

[](#suggestions)

Adding aliases: If you want to use different names for provided services you can use aliases. This is a good idea if you don't want have any dependency to guzzle in your service name.

```
services:
   http.client:
       alias: guzzle.client
```

Creating multiple clients: If you want to have different Guzzle clients in your application all you need is to define them in services file and add "guzzle.client" tag to turn on Symfony integration (Debug toolbar, logs, so on..).

```
services:
    guzzle.client_one:
        class: GuzzleHttp\Client
        tags:
            - { name: guzzle.client }

    guzzle.client_two:
        class: GuzzleHttp\Client
        tags:
            - { name: guzzle.client }
```

Authors
-------

[](#authors)

- Nikolay Labinskiy aka e-moe

Inspired by Chris Wilkinson's and Florian Preusner's GuzzleBundles ([1](https://github.com/misd-service-development/guzzle-bundle), [2](https://github.com/8p/GuzzleBundle)).

See also the list of [contributors](https://github.com/e-moe/guzzle6-bundle/graphs/contributors) who participated in this project.

License
-------

[](#license)

This bundle is released under the [MIT license](LICENSE)

###  Health Score

39

—

LowBetter than 87% of packages

Maintenance15

Infrequent updates — may be unmaintained

Popularity42

Moderate usage in the ecosystem

Community17

Small or concentrated contributor base

Maturity68

Established project with proven stability

 Bus Factor1

Top contributor holds 92.5% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~96 days

Recently: every ~281 days

Total

22

Last Release

1901d ago

PHP version history (4 changes)v1.0.0PHP &gt;=5.5

v1.1.0PHP &gt;=5.5.9

v1.1.1PHP &gt;=5.6

v1.3.0PHP &gt;=7.2.5

### Community

Maintainers

![](https://www.gravatar.com/avatar/bdc1cc4ac0c0b72352347f746d69d3213dfb8fbe9910cd43a02c5b3290e6b1f1?d=identicon)[e-moe](/maintainers/e-moe)

---

Top Contributors

[![e-moe](https://avatars.githubusercontent.com/u/963424?v=4)](https://github.com/e-moe "e-moe (74 commits)")[![BrandonKahre](https://avatars.githubusercontent.com/u/356365?v=4)](https://github.com/BrandonKahre "BrandonKahre (1 commits)")[![dvaeversted](https://avatars.githubusercontent.com/u/1611810?v=4)](https://github.com/dvaeversted "dvaeversted (1 commits)")[![Brandon0](https://avatars.githubusercontent.com/u/191154536?v=4)](https://github.com/Brandon0 "Brandon0 (1 commits)")[![pmarien](https://avatars.githubusercontent.com/u/8394874?v=4)](https://github.com/pmarien "pmarien (1 commits)")[![vkhramtsov](https://avatars.githubusercontent.com/u/5517373?v=4)](https://github.com/vkhramtsov "vkhramtsov (1 commits)")[![yeroon](https://avatars.githubusercontent.com/u/567230?v=4)](https://github.com/yeroon "yeroon (1 commits)")

---

Tags

bundleguzzlepackagistphpsymfonysymfony-bundlehttpapiclientbundlerestcurlhttp clientweb serviceGuzzle

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/e-moe-guzzle6-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/e-moe-guzzle6-bundle/health.svg)](https://phpackages.com/packages/e-moe-guzzle6-bundle)
```

###  Alternatives

[eightpoints/guzzle-bundle

Integrates Guzzle 6.x, a PHP HTTP Client, into Symfony. Comes with easy and powerful configuration options and optional plugins.

44611.9M54](/packages/eightpoints-guzzle-bundle)[zoonman/pixabay-php-api

PixabayClient is a PHP HTTP client library to access Pixabay's API

3354.0k](/packages/zoonman-pixabay-php-api)[ismaeltoe/osms

PHP library wrapper of the Orange SMS API.

4639.8k](/packages/ismaeltoe-osms)[opgg/riotquest

RiotQuest, PHP RiotAPI client library that focused on multi request from OP.GG

172.5k](/packages/opgg-riotquest)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
