2017 © Pedro Peláez
 

symfony-bundle guzzle-bundle

This Bundle provide integration for guzzle http client to access RESTful API's with Symfony2

image

ddeboer/guzzle-bundle

This Bundle provide integration for guzzle http client to access RESTful API's with Symfony2

  • Monday, May 6, 2013
  • by gimler
  • Repository
  • 12 Watchers
  • 66 Stars
  • 3,945 Installations
  • PHP
  • 2 Dependents
  • 0 Suggesters
  • 32 Forks
  • 10 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

DdeboerGuzzleBundle

DdeboerGuzzleBundle is a Symfony2 bundle for integrating the Guzzle PHP library in your project., (*1)

Installation

Installation is a quick (I promise!) 4 step process:, (*2)

  1. Download DdeboerGuzzleBundle
  2. Configure the Autoloader
  3. Enable the Bundle
  4. Configure the DdeboerGuzzleBundle

Step 1: Download DdeboerGuzzleBundle

Ultimately, the GuzzleBundle files should be downloaded to the vendor/bundles/Ddeboer/GuzzleBundle directory., (*3)

This can be done in several ways, depending on your preference. The first method is the standard Symfony2 method., (*4)

Using the vendors script, (*5)

Add the following lines in your deps file:, (*6)

``` ini [guzzle] git=git://github.com/guzzle/guzzle.git target=guzzle, (*7)

[DdeboerGuzzleBundle] git=git://github.com/ddeboer/GuzzleBundle.git target=bundles/Ddeboer/GuzzleBundle, (*8)


Now, run the vendors script to download the bundle: ``` bash $ php bin/vendors install

Using submodules, (*9)

If you prefer instead to use git submodules, then run the following:, (*10)

``` bash $ git submodule add git://github.com/guzzle/guzzle.git vendor/guzzle $ git submodule add git://github.com/ddeboer/GuzzleBundle vendor/bundles/Ddeboer/GuzzleBundle $ git submodule update --init, (*11)


### Step 2: Configure the Autoloader Add the `Guzzle` and `Ddeboer` namespace to your autoloader: ``` php <?php // app/autoload.php $loader->registerNamespaces(array( // ... 'Guzzle' => __DIR__.'/../vendor/guzzle/src', 'Ddeboer' => __DIR__.'/../vendor/bundles', ));

Step 3: Enable the bundle

Finally, enable the bundle in the kernel, (*12)

php <guzzle> <clients> <!-- Abstract service to store AWS account credentials --> <client name="abstract.aws"> <param name="access_key" value="12345" /> <param name="secret_key" value="abcd" /> </client> <!-- Amazon S3 client that extends the abstract client --> <client name="s3" class="Guzzle.Aws.S3.S3Client" extends="abstract.aws"> <param name="devpay_product_token" value="XYZ" /> <param name="devpay_user_token" value="123" /> </client> <client name="simple_db" class="Guzzle.Aws.SimpleDb.SimpleDbClient" extends="abstract.aws" /> <client name="sqs" class="Guzzle.Aws.Sqs.SqsClient" extends="abstract.aws" /> <!-- Unfuddle client --> <client name="unfuddle" class="Guzzle.Unfuddle.UnfuddleClient"> <param name="username" value="test-user" /> <param name="password" value="my-password" /> <param name="subdomain" value="my-subdomain" /> </client> </clients> </guzzle>, (*13)

License

This bundle is under the MIT license. See the complete license in the bundle:, (*14)

Resources/meta/LICENSE

The Versions

06/05 2013

dev-master

9999999-dev https://github.com/ddeboer/GuzzleBundle

This Bundle provide integration for guzzle http client to access RESTful API's with Symfony2

  Sources   Download

MIT

The Requires

 

api curl rest http client guzzle web service http client

25/10 2012

dev-guzzle2

dev-guzzle2 https://github.com/ddeboer/GuzzleBundle

This Bundle provide integration for guzzle http client to access RESTful API's with Symfony2

  Sources   Download

MIT

The Requires

 

api curl rest http client guzzle web service http client

25/10 2012

v1.0.0

1.0.0.0 https://github.com/ddeboer/GuzzleBundle

This Bundle provide integration for guzzle http client to access RESTful API's with Symfony2

  Sources   Download

MIT

The Requires

 

api curl rest http client guzzle web service http client