2017 © Pedro Peláez
 

symfony-bundle api-bundle

Provide API calls for Symfony2 project. Result is shown in debug toolbar.

image

plr/api-bundle

Provide API calls for Symfony2 project. Result is shown in debug toolbar.

  • Wednesday, July 8, 2015
  • by poolerMF
  • Repository
  • 1 Watchers
  • 1 Stars
  • 185 Installations
  • HTML
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 9 Versions
  • 0 % Grown

The README.md

PlrAPI Bundle

Provide a basic logger of API request in toolbar., (*1)

This bundle is extension of playbloom/guzzle-bundle, (*2)

Installation

``` bash $ php composer.phar require plr/api-bundle "1.*", (*3)


## Enable the Bundle ``` php <?php // app/AppKernel.php public function registerBundles() { $bundles = array( // ... new Playbloom\Bundle\GuzzleBundle\PlaybloomGuzzleBundle(); new Plr\Bundle\ApiBundle\PlrApiBundle(), ); }

Configure the Bundle

``` yaml plr_api: server1: log: true baseUrl: "http://www.example.com" parameters: jsonrpc: "2.0" custom_parameter: "11" ... user_agent: "Plr API" curl_options: CURLOPT_CONNECTTIMEOUT: 10 CURLOPT_SSL_VERIFYPEER: false CURLOPT_SSLVERSION: 3 ... server2: log: false ..., (*4)


## Example of usage ``` php $response = $this->get('api.server1')->callJSON("client_login", ["login"=>"user", "password"=>"password"]); echo $response["result"]; $response = $this->get('api.server1')->callJSON("client_login", [], "client.php");

Licence

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

The Versions

08/07 2015

dev-master

9999999-dev

Provide API calls for Symfony2 project. Result is shown in debug toolbar.

  Sources   Download

MIT

The Requires

 

by Ing. Matúš Ferko

api debug symfony request guzzle profiler

08/07 2015

1.0.7

1.0.7.0

Provide API calls for Symfony2 project. Result is shown in debug toolbar.

  Sources   Download

MIT

The Requires

 

by Ing. Matúš Ferko

api debug symfony request guzzle profiler

26/05 2015

1.0.6

1.0.6.0

Provide API calls for Symfony2 project. Result is shown in debug toolbar.

  Sources   Download

MIT

The Requires

 

by Ing. Matúš Ferko

api debug symfony request guzzle profiler

26/05 2015

1.0.5

1.0.5.0

Provide API calls for Symfony2 project. Result is shown in debug toolbar.

  Sources   Download

MIT

The Requires

 

by Ing. Matúš Ferko

api debug symfony request guzzle profiler

13/05 2015

1.0.4

1.0.4.0

Provide API calls for Symfony2 project. Result is shown in debug toolbar.

  Sources   Download

MIT

The Requires

 

by Ing. Matúš Ferko

api debug symfony request guzzle profiler

01/05 2015

1.0.3

1.0.3.0

Provide API calls for Symfony2 project. Result is shown in debug toolbar.

  Sources   Download

MIT

The Requires

 

by Ing. Matúš Ferko

api debug symfony request guzzle profiler

03/04 2015

1.0.2

1.0.2.0

Provide API calls for Symfony2 project. Result is shown in debug toolbar.

  Sources   Download

MIT

The Requires

 

by Ing. Matúš Ferko

api debug symfony request guzzle profiler

03/04 2015

1.0.1

1.0.1.0

Provide API calls for Symfony2 project. Result is shown in debug toolbar.

  Sources   Download

MIT

The Requires

 

by Ing. Matúš Ferko

api debug symfony request guzzle profiler

03/04 2015

1.0.0

1.0.0.0

Provide API calls for Symfony2 project. Result is shown in debug toolbar.

  Sources   Download

MIT

The Requires

 

by Ing. Matúš Ferko

api debug symfony request guzzle profiler