Download the PHP package leaseweb/guzzle-bundle without Composer
On this page you can find all versions of the php package leaseweb/guzzle-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package guzzle-bundle
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
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
Requirements
- PHP 5.3 with cURL support
- Symfony 2.3
Installation
Installation is broken down in the following steps:
- Download LswGuzzleBundle using composer
- Enable the Bundle
- Make sure the cURL module in PHP is enabled
Step 1: Download LswGuzzleBundle using composer
Add LswGuzzleBundle in your composer.json:
Now tell composer to download the bundle by running the command:
Composer will install the bundle to your project's vendor/leaseweb
directory.
Step 2: Enable the bundle
Enable the bundle in the kernel:
Step 3: Make sure the cURL module in PHP is enabled
On a Debian based distribution (like Ubuntu) the package is called "php5-curl" and can be installed using the following commands:
On a RedHat based distribution (like CentOS) the package is called "php-curl" and can be installed using the following commands:
To check this create and run a PHP file with the following contents:
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
These is an example of Guzzle client based on a service description (including cURL options):
Usage
This is how to consume the described service commands:
License
This bundle is under the MIT license.