devmachine/guzzle-client-bundle

Integration of devmachine Guzzle clients into Symfony.

1.0.0 2014-06-08 12:42 UTC

README

Build Status

SensioLabsInsight

Devmachine Guzzle clients integration into Symfony 2.

Installation

Install this bundle using Composer. Add the following to your composer.json (note the addition of relevant client libraries):

{
    "require": {
        "devmachine/guzzle-client-bundle": "1.0.*",
        "devmachine/guzzle-markus-client": "1.0.*",
        "devmachine/guzzle-rottentomatoes-client": "1.0.*"
    }
}

Register bundle in the kernel:

<?php
// app/AppKernel.php

public function registerBundles()
{
    $bundles = array(
        // ...

        new Devmachine\Bundle\GuzzleClientBundle\DevmachineGuzzleClientBundle(),
    );
}

Update config:

devmachine_guzzle_client:
    # Enable default clients
    markus: ~

    # Setup RottenTomatoes client
    rotten_tomatoes: %rotten_tomatoes.api_key%

More info

# Console commands
$ ./app/console | grep devmachine:guzzle-client

# Configuration reference
$ ./app/console config:dump-reference devmachine_guzzle_client

# Available services
$ ./app/console container:debug | grep devmachine_guzzle_client