Download the PHP package leaseweb/api-caller-bundle-ivisedo without Composer
On this page you can find all versions of the php package leaseweb/api-caller-bundle-ivisedo. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download leaseweb/api-caller-bundle-ivisedo
More information about leaseweb/api-caller-bundle-ivisedo
Files in leaseweb/api-caller-bundle-ivisedo
Package api-caller-bundle-ivisedo
Short Description cURL API call functionality with full Web Debug Toolbar integration
License MIT
Homepage http://www.leaseweblabs.com
Informations about the package api-caller-bundle-ivisedo
LswApiCallerBundle
The LswApiCallerBundle adds a CURL API caller 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 LswApiCallerBundle
Requirements
- PHP 5.3 with curl support
- Symfony 2.1 (works under Symfony 2.0 as well)
Installation
Installation is broken down in the following steps:
- Download LswApiCallerBundle using composer
- Enable the Bundle
- Make sure the cURL module in PHP is enabled
Step 1: Download LswApiCallerBundle using composer
Add LswApiCallerBundle 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.
Usage
You can use the caller by getting the service "api_caller" and using the "call" function with one of the available call types:
- HttpGetJson
- HttpPostJson
- HttpPutJson
- HttpDeleteJson
- HttpGetHtml
Example of usage with the "HttpGetJson" call type:
Configuration
By default it uses these cURL options:
License
This bundle is under the MIT license.
The "wall-socket" icon in the web debug toolbar is part of the Picas icon set (official website: http://www.picasicons.com). The icon is licensed and may only be used to identifying the LswApiCallerBundle in the Symfony2 web debug toolbar. All ownership and copyright of this icon remain the property of Rok Benedik.
All versions of api-caller-bundle-ivisedo with dependencies
ext-curl Version *
symfony/framework-bundle Version >=2.1
symfony/security-bundle Version >=2.1