2017 © Pedro Peláez
 

library silex-provider-hubclient

Provides a client for the Hub.

image

linkorb/silex-provider-hubclient

Provides a client for the Hub.

  • Wednesday, November 29, 2017
  • by joostfaassen
  • Repository
  • 4 Watchers
  • 0 Stars
  • 20 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 0 % Grown

The README.md

linkorb/silex-provider-hubclient

Provides two services from perinatologie/hub-client-php:-, (*1)

  • ApiClientFactory as a service named hub_client.factory which can create instances of the HubV3Client and HubV4Client
  • HubV3Client as a service named hub_client.service

Install

Install using composer:-, (*2)

$ composer require linkorb/silex-provider-hubclient

Then configure and register the provider:-, (*3)

// app/app.php
use LinkORB\HubClient\Provider\HubClientProvider;
...
$app->register(
    new HubClientProvider,
    ['hub_client.url' => getenv('HUB_CLIENT_URL'),
    // if you want to use the factory to create a HubV4Client then add the
    // url of the UserBase Json Web Token authentication endpoint
    'hub_client.userbase_url' = getenv('HUB_CLIENT_USERBASE_URL'),
    // add these parameters if you want to directly create the HubV3Client
    // with a fixed set of credentials
    'hub_client.username' = getenv('HUB_CLIENT_USERNAME'),
    'hub_client.password' = getenv('HUB_CLIENT_PASSWORD')]
);

The Versions

29/11 2017

dev-master

9999999-dev

Provides a client for the Hub.

  Sources   Download

MIT

The Requires

 

by LinkORB

29/11 2017

v2.0.0

2.0.0.0

Provides a client for the Hub.

  Sources   Download

MIT

The Requires

 

by LinkORB

01/06 2017

v1.0.2

1.0.2.0

Provides a client for the Hub.

  Sources   Download

MIT

The Requires

 

by LinkORB

31/05 2017

v1.0.0

1.0.0.0

Provides a client for the Hub.

  Sources   Download

MIT

The Requires

 

by LinkORB

31/05 2017

v1.0.1

1.0.1.0

Provides a client for the Hub.

  Sources   Download

MIT

The Requires

 

by LinkORB