Skip to content

QSimon/CsaGuzzleBundle

 
 

Repository files navigation

CsaGuzzleBundle

Latest Stable Version Latest Unstable Version Build Status SensioLabsInsight

Installation

Add the required package using composer.

composer require csa/guzzle-bundle:dev-master

Add the bundle to your AppKernel.

<?php
// in %kernel.root_dir%/AppKernel.php
$bundles[] = new Csa\Bundle\GuzzleBundle\CsaGuzzleBundle();

To enable the data collector (only in the dev environment, you may simply configure the CsaGuzzleBundle as follows:

csa_guzzle:
    profiler: %kernel.debug%

Create a client using the provided factory service

Simply create a service as follows:

<service
        id="acme.client"
        class="%acme.client.class%"
        factory-service="csa_guzzle.client_factory"
        factory-method="create">
    <!-- An array of configuration values -->
    <tag name="csa_guzzle.client" />
</service>

License

This library is under the MIT license. For the full copyright and license information, please view the LICENSE file that was distributed with this source code.

Built with Grunt

About

A bundle integrating Guzzle >=4.0 in Symfony

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 62.9%
  • HTML 19.6%
  • JavaScript 11.9%
  • CSS 5.6%