lezgro/yii2-jwplatform

The JWPlatform API wraper for the Yii framework

v1.0.2 2015-02-10 16:51 UTC

This package is auto-updated.

Last update: 2024-02-29 03:23:24 UTC


README

JWPlatform is Secure Video Hosting and Streaming Service.

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist lezgro/yii2-jwplatform "*"

or add

"lezgro/yii2-jwplatform": "*"

to the require section of your composer.json file.

Setup

Once the extension is installed, load the module in your application config:

'components' => [
    'jwplatform' => [
        'class' => 'lezgro\yii2-jwplatform\JwPlatform',
        'apiKey' => 'your API key',
        'apiSecret' => 'your API secret',
    ],
]

Usage

echo Yii::$app->jwplatform->call('api_method', ['param_name' => 'param_value']);