hubkit/hk-sdk-php-bundle

Bundle Symfony for Sdk Hubkit

Installs: 580

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Forks: 0

Type:hk-sdk-php-bundle

1.0.1 2018-11-23 14:03 UTC

This package is auto-updated.

Last update: 2024-04-24 21:03:25 UTC


README

This bundle is a Symfony integration of hubkit/hk-sdk-php. It provide configurations and dependancy injection of necessary classes to use the SDK with the framework.

Configuration

First, activate the bundle. Add this line inside config/bundles.php

Hubkit\SdkBundle\HubkitSdkBundle::class => ['all' => true],

To override basic configurations, you can specify it like :

hubkit_sdk:
    api_endpoint: 'https://app.hubkit.cloud/api'
    api_version: 'v1'
    api_key: ''

Usage

Use symfony service injection (service hubkit_sdk.manager) and then check the hubkit/hk-sdk-php to use it properly.


use Hubkit\SdkBundle\HubkitSdk

public function __construct(HubkitSdk $hubkitSdk) {
   // ...
}