2017 © Pedro Peláez
 

symfony-bundle guzzle6-bundle

Integrates Guzzle 6 into your Symfony application

image

e-moe/guzzle6-bundle

Integrates Guzzle 6 into your Symfony application

  • Wednesday, May 30, 2018
  • by e-moe
  • Repository
  • 1 Watchers
  • 11 Stars
  • 50,195 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 7 Forks
  • 1 Open issues
  • 22 Versions
  • 13 % Grown

The README.md

Symfony Guzzle6Bundle

Latest Stable Version Total Downloads Latest Unstable Version License, (*1)

Build Status Coverage Status SensioLabsInsight, (*2)

This bundle integrates Guzzle 6.x into Symfony. Guzzle is a PHP framework for building RESTful web service clients., (*3)

Requirements

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

Installation

To install this bundle, run the command below and you will get the latest version by Packagist., (*4)

``` bash composer require e-moe/guzzle6-bundle, (*5)


To use the newest (maybe unstable) version please add following into your composer.json: ``` json { "require": { "e-moe/guzzle6-bundle": "dev-master" } }

Usage

Load bundle in AppKernel.php (should be done automatically if you are using Symfony Flex): ``` php new Emoe\GuzzleBundle\EmoeGuzzleBundle(),, (*6)


Configuration in config.yml (optional): ``` yaml 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., (*7)

Using Guzzle in controllers: ``` php $client = $this->get('guzzle.client'); $response = $client->get('http://example.com');, (*8)


Using Guzzle in your own services: ``` yaml application.my_service: class: App\Service\MyService arguments: - "@guzzle.client"

or you can just use autowire feature with GuzzleHttp\ClientInterface type hint., (*9)

Features

Symfony Debug Profiler

Guzzle Requests, (*10)

Symfony Debug Timeline

Guzzle Timeline Integration, (*11)

Symfony Debug Toolbar

Guzzle Toolbar Integration, (*12)

Symfony Debug Logs (Monolog Integration)

Guzzle Monolog Logs, (*13)

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. ``` yaml services: http.client: alias: guzzle.client, (*14)


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..). ``` yaml services: guzzle.client_one: class: GuzzleHttp\Client tags: - { name: guzzle.client } guzzle.client_two: class: GuzzleHttp\Client tags: - { name: guzzle.client }

Authors

  • Nikolay Labinskiy aka e-moe

Inspired by Chris Wilkinson's and Florian Preusner's GuzzleBundles (1, 2)., (*15)

See also the list of contributors who participated in this project., (*16)

License

This bundle is released under the MIT license, (*17)

The Versions

30/05 2018

dev-master

9999999-dev https://github.com/e-moe/guzzle6-bundle

Integrates Guzzle 6 into your Symfony application

  Sources   Download

MIT

The Requires

 

The Development Requires

by Nikolay Labinskiy aka e-moe

api curl rest bundle http client guzzle web service http client

02/03 2018

v1.2.3

1.2.3.0 https://github.com/e-moe/guzzle6-bundle

Integrates Guzzle 6 into your Symfony application

  Sources   Download

MIT

The Requires

 

The Development Requires

by Nikolay Labinskiy aka e-moe

api curl rest bundle http client guzzle web service http client

02/03 2018

dev-fix/tests

dev-fix/tests https://github.com/e-moe/guzzle6-bundle

Integrates Guzzle 6 into your Symfony application

  Sources   Download

MIT

The Requires

 

The Development Requires

by Nikolay Labinskiy aka e-moe

api curl rest bundle http client guzzle web service http client

22/12 2017

v1.2.2

1.2.2.0 https://github.com/e-moe/guzzle6-bundle

Integrates Guzzle 6 into your Symfony application

  Sources   Download

MIT

The Requires

 

The Development Requires

by Nikolay Labinskiy aka e-moe

api curl rest bundle http client guzzle web service http client

07/12 2017

v1.2.1

1.2.1.0 https://github.com/e-moe/guzzle6-bundle

Integrates Guzzle 6 into your Symfony application

  Sources   Download

MIT

The Requires

 

The Development Requires

by Nikolay Labinskiy aka e-moe

api curl rest bundle http client guzzle web service http client

07/12 2017

v1.2.0

1.2.0.0 https://github.com/e-moe/guzzle6-bundle

Integrates Guzzle 6 into your Symfony application

  Sources   Download

MIT

The Requires

 

The Development Requires

by Nikolay Labinskiy aka e-moe

api curl rest bundle http client guzzle web service http client

31/10 2017

v1.1.13

1.1.13.0 https://github.com/e-moe/guzzle6-bundle

Integrates Guzzle 6 into your Symfony application

  Sources   Download

MIT

The Requires

 

The Development Requires

by Nikolay Labinskiy aka e-moe

api curl rest bundle http client guzzle web service http client

26/10 2017

v1.1.12

1.1.12.0 https://github.com/e-moe/guzzle6-bundle

Integrates Guzzle 6 into your Symfony application

  Sources   Download

MIT

The Requires

 

The Development Requires

by Nikolay Labinskiy aka e-moe

api curl rest bundle http client guzzle web service http client

25/10 2017

v1.1.11

1.1.11.0 https://github.com/e-moe/guzzle6-bundle

Integrates Guzzle 6 into your Symfony application

  Sources   Download

MIT

The Requires

 

The Development Requires

by Nikolay Labinskiy aka e-moe

api curl rest bundle http client guzzle web service http client

03/10 2017

v1.1.10

1.1.10.0 https://github.com/e-moe/guzzle6-bundle

Integrates Guzzle 6 into your Symfony application

  Sources   Download

MIT

The Requires

 

The Development Requires

by Nikolay Labinskiy aka e-moe

api curl rest bundle http client guzzle web service http client

10/08 2017

1.1.9

1.1.9.0 https://github.com/e-moe/guzzle6-bundle

Integrates Guzzle 6 into your Symfony application

  Sources   Download

MIT

The Requires

 

The Development Requires

by Nikolay Labinskiy aka e-moe

api curl rest bundle http client guzzle web service http client

21/03 2017

v1.1.8

1.1.8.0 https://github.com/e-moe/guzzle6-bundle

Integrates Guzzle 6 into your Symfony application

  Sources   Download

MIT

The Requires

 

The Development Requires

by Nikolay Labinskiy aka e-moe

api curl rest bundle http client guzzle web service http client

17/03 2017

v1.1.7

1.1.7.0 https://github.com/e-moe/guzzle6-bundle

Integrates Guzzle 6 into your Symfony application

  Sources   Download

MIT

The Requires

 

The Development Requires

by Nikolay Labinskiy aka e-moe

api curl rest bundle http client guzzle web service http client

03/01 2017

v1.1.6

1.1.6.0 https://github.com/e-moe/guzzle6-bundle

Integrates Guzzle 6 into your Symfony application

  Sources   Download

MIT

The Requires

 

The Development Requires

by Nikolay Labinskiy aka e-moe

api curl rest bundle http client guzzle web service http client

04/12 2016

v1.1.5

1.1.5.0 https://github.com/e-moe/guzzle6-bundle

Integrates Guzzle 6 into your Symfony application

  Sources   Download

MIT

The Requires

 

The Development Requires

by Nikolay Labinskiy aka e-moe

api curl rest bundle http client guzzle web service http client

17/08 2016

v1.1.4

1.1.4.0 https://github.com/e-moe/guzzle6-bundle

Integrates Guzzle 6 into your Symfony application

  Sources   Download

MIT

The Requires

 

The Development Requires

by Nikolay Labinskiy aka e-moe

api curl rest bundle http client guzzle web service http client

03/05 2016

v1.1.3

1.1.3.0 https://github.com/e-moe/guzzle6-bundle

Integrates Guzzle 6 into your Symfony application

  Sources   Download

MIT

The Requires

 

The Development Requires

by Nikolay Labinskiy aka e-moe

api curl rest bundle http client guzzle web service http client

01/01 2016

v1.1.2

1.1.2.0 https://github.com/e-moe/guzzle6-bundle

Integrates Guzzle 6 into your Symfony application

  Sources   Download

MIT

The Requires

 

The Development Requires

by Nikolay Labinskiy aka e-moe

api curl rest bundle http client guzzle web service http client

31/12 2015

v1.1.1

1.1.1.0 https://github.com/e-moe/guzzle6-bundle

Integrates Guzzle 6 into your Symfony application

  Sources   Download

MIT

The Requires

 

The Development Requires

by Nikolay Labinskiy aka e-moe

api curl rest bundle http client guzzle web service http client

05/12 2015

v1.1.0

1.1.0.0 https://github.com/e-moe/guzzle6-bundle

Integrates Guzzle 6 into your Symfony2 application

  Sources   Download

MIT

The Requires

 

The Development Requires

by Nikolay Labinskiy aka e-moe

api curl rest bundle http client guzzle web service http client

12/09 2015

v1.0.1

1.0.1.0 https://github.com/e-moe/guzzle6-bundle

Integrates Guzzle 6 into your Symfony2 application

  Sources   Download

MIT

The Requires

 

The Development Requires

by Nikolay Labinskiy aka e-moe

api curl rest bundle http client guzzle web service http client

14/06 2015

v1.0.0

1.0.0.0 https://github.com/e-moe/guzzle6-bundle

Integrates Guzzle 6 into your Symfony2 application

  Sources   Download

MIT

The Requires

 

The Development Requires

by Nikolay Labinskiy aka e-moe

api curl rest bundle http client guzzle web service http client