hubkit / hk-sdk-php-bundle
Bundle Symfony for Sdk Hubkit
1.0.1
2018-11-23 14:03 UTC
Requires
- php: ^7.1.3
- hubkit/hk-sdk-php: ^1.0
- symfony/framework-bundle: ^4.0
Requires (Dev)
This package is auto-updated.
Last update: 2024-12-24 22:44:18 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) {
// ...
}