PHPackages                             leaseweb/guzzle-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. leaseweb/guzzle-bundle

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

leaseweb/guzzle-bundle
======================

Guzzle API call functionality with full Web Debug Toolbar integration

v1.0.2(12y ago)2844.6k6[2 issues](https://github.com/LeaseWeb/LswGuzzleBundle/issues)[2 PRs](https://github.com/LeaseWeb/LswGuzzleBundle/pulls)MITPHPPHP &gt;=5.3.2

Since Mar 24Pushed 5y ago7 watchersCompare

[ Source](https://github.com/LeaseWeb/LswGuzzleBundle)[ Packagist](https://packagist.org/packages/leaseweb/guzzle-bundle)[ Docs](http://www.leaseweblabs.com)[ RSS](/packages/leaseweb-guzzle-bundle/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (2)Versions (4)Used By (0)

Deprecated
----------

[](#deprecated)

This repository is no longer being actively maintained. We encourage you to not use this code. If you rely on this code you might want to fork the repository to keep your systems from breaking, if we remove this repository in the future.

LswGuzzleBundle
===============

[](#lswguzzlebundle)

[![screenshot](https://camo.githubusercontent.com/da7336584d4f4e46214bc0cbbb4e5d7f2a4cd1abc6938e9d3610b8b497a3acbf/687474703a2f2f7777772e6c656173657765626c6162732e636f6d2f77702d636f6e74656e742f75706c6f6164732f323031342f30332f67757a7a6c655f62756e646c652e706e67)](https://camo.githubusercontent.com/da7336584d4f4e46214bc0cbbb4e5d7f2a4cd1abc6938e9d3610b8b497a3acbf/687474703a2f2f7777772e6c656173657765626c6162732e636f6d2f77702d636f6e74656e742f75706c6f6164732f323031342f30332f67757a7a6c655f62756e646c652e706e67)

The LswGuzzleBundle adds Guzzle API call functionality to your Symfony2 application. It is easy to use from the code and is aimed to have full debugging capabilities.

[Read the LeaseWebLabs blog about LswGuzzleBundle](http://www.leaseweblabs.com/2014/03/guzzle-symfony2-bundle-curl-api-calling/)

[Read the Guzzle documentation](http://docs.guzzlephp.org/en/stable/)

[Guzzle API documentation](http://api.guzzlephp.org/)

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

[](#requirements)

- PHP 5.3 with cURL support
- Symfony 2.3

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

[](#installation)

Installation is broken down in the following steps:

1. Download LswGuzzleBundle using composer
2. Enable the Bundle
3. Make sure the cURL module in PHP is enabled

### Step 1: Download LswGuzzleBundle using composer

[](#step-1-download-lswguzzlebundle-using-composer)

Add LswGuzzleBundle in your composer.json:

```
{
    "require": {
        "leaseweb/guzzle-bundle": "*",
        ...
    }
}
```

Now tell composer to download the bundle by running the command:

```
$ php composer.phar update leaseweb/guzzle-bundle
```

Composer will install the bundle to your project's `vendor/leaseweb` directory.

### Step 2: Enable the bundle

[](#step-2-enable-the-bundle)

Enable the bundle in the kernel:

```

```

It should display that the option "cURL support" is set to "enabled".

This package should work on a Windows installation as well provided the CURL support is enabled in PHP.

Configuration
-------------

[](#configuration)

These is an example of Guzzle client based on a service description (including cURL options):

```
lsw_guzzle:
    clients:
        test:
            config:
                json_objects: true
                curl.options:
                    CURLOPT_CONNECTTIMEOUT: 10
                    CURLOPT_SSL_VERIFYPEER: false
                    CURLOPT_USERAGENT: "LeaseWeb API Caller"
                    CURLOPT_FOLLOWLOCATION: true
                    CURLOPT_SSLVERSION: 3
            description:
                baseUrl: "http://sf2testproject.dev"
                operations:
                    test:
                        httpMethod: "GET"
                        uri: "/app_dev.php/demo/?a=b"
                    json:
                        httpMethod: "GET"
                        uri: "/app_dev.php/demo/json"
                    json_post:
                        httpMethod: "POST"
                        uri: "/app_dev.php/demo/{action}"
                        parameters:
                            testvalue:
                                location: xml
                            action:
                                location: uri

```

Usage
-----

[](#usage)

This is how to consume the described service commands:

```
    	$response = $this->get('guzzle.test')->getCommand('test')->execute();
    	$response = $this->get('guzzle.test')->getCommand('json')->execute();
    	$response = $this->get('guzzle.test')->getCommand('json_post',array('action'=>'json','testvalue'=>666))->execute();

```

License
-------

[](#license)

This bundle is under the MIT license.

###  Health Score

36

—

LowBetter than 79% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity36

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 50% 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 ~1 days

Total

3

Last Release

4483d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/07471fe4d781492d9c6dfee2259d66b399737cc634b6048c043f3cb3dfaa1cc8?d=identicon)[LeaseWeb](/maintainers/LeaseWeb)

---

Top Contributors

[![nrocco](https://avatars.githubusercontent.com/u/694012?v=4)](https://github.com/nrocco "nrocco (1 commits)")[![OskarStark](https://avatars.githubusercontent.com/u/995707?v=4)](https://github.com/OskarStark "OskarStark (1 commits)")

---

Tags

apicurlGuzzleSymfony2

### Embed Badge

![Health badge](/badges/leaseweb-guzzle-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/leaseweb-guzzle-bundle/health.svg)](https://phpackages.com/packages/leaseweb-guzzle-bundle)
```

###  Alternatives

[nelmio/api-doc-bundle

Generates documentation for your REST API from attributes

2.4k67.4M263](/packages/nelmio-api-doc-bundle)[eightpoints/guzzle-bundle

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

44512.5M57](/packages/eightpoints-guzzle-bundle)[leaseweb/api-caller-bundle

cURL API call functionality with full Web Debug Toolbar integration

64418.8k1](/packages/leaseweb-api-caller-bundle)[rcsofttech/audit-trail-bundle

Enterprise-grade, high-performance Symfony audit trail bundle. Automatically track Doctrine entity changes with split-phase architecture, multiple transports (HTTP, Queue, Doctrine), and sensitive data masking.

1189.8k](/packages/rcsofttech-audit-trail-bundle)[e-moe/guzzle6-bundle

Integrates Guzzle 6 into your Symfony application

12262.2k1](/packages/e-moe-guzzle6-bundle)[openapi/openapi-sdk

Minimal and agnostic PHP SDK for Openapi® (https://openapi.com)

171.5k1](/packages/openapi-openapi-sdk)

PHPackages © 2026

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