2017 © Pedro Peláez
 

symfony-bundle yprox-api-client-bundle

Integration of yProx API client library for Symfony

image

yproximite/yprox-api-client-bundle

Integration of yProx API client library for Symfony

  • Wednesday, November 22, 2017
  • by sf_tristanb
  • Repository
  • 9 Watchers
  • 0 Stars
  • 2 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

YproxApiClientBundle

Installation

Require yproximite/yprox-api-client-bundle to your composer.json file:, (*1)

$ composer require yproximite/yprox-api-client-bundle

Register the bundle in app/AppKernel.php:, (*2)

// app/AppKernel.php
public function registerBundles()
{
    return [
        // ...
        new Yproximite\Bundle\YproxApiClientBundle\YproxApiClientBundle(),
    ];
}

Configuration

Here is the configuration reference:, (*3)

# app/config/config.yml
yprox_api_client:

    # Identifier of the service that represents "Http\Client\HttpClient"
    http_client: httplug.client.guzzle6

    clients:

        # Simple example
        default:
            api_key: xxxxx

        # Advanced example
        custom:
            api_key: yyyyy
            base_url: http://api.host.com

Usage

// yprox_api_client.service_aggregator.<client_name_from_config>
$api = $this->get('yprox_api_client.service_aggregator.default');

$message = new ArticleListMessage();
$message->setSiteId(1);

// Yproximite\Api\Model\Article\Article[]
$articles = $api->article()->getArticles($message);

The Versions

22/11 2017

dev-master

9999999-dev

Integration of yProx API client library for Symfony

  Sources   Download

MIT

The Requires

 

The Development Requires

by Nikita Sviridenko

22/11 2017

v2.0.0

2.0.0.0

Integration of yProx API client library for Symfony

  Sources   Download

MIT

The Requires

 

The Development Requires

by Nikita Sviridenko

08/02 2017

v1.0.1

1.0.1.0

Integration of yProx API client library for Symfony

  Sources   Download

MIT

The Requires

 

The Development Requires

by Nikita Sviridenko

08/02 2017

v1.0.0

1.0.0.0

Integration of yProx API client library for Symfony

  Sources   Download

MIT

The Requires

 

The Development Requires

by Nikita Sviridenko