mackiavelly/yii2-module-trinitytv

There is no license information available for the latest version (1.0.2) of this package.

CRUD for api trinitytv

1.0.2 2021-01-05 15:10 UTC

This package is auto-updated.

Last update: 2024-05-07 16:37:55 UTC


README

Yii2 module for Trinity TV API

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist mackiavelly/yii2-module-trinitytv "*"

or add

"mackiavelly/yii2-module-trinitytv": "*"

to the require section of your composer.json file.

Config

Yii::$app->params['trinitytv'] = [
	'debug'     => false,
	'partnerId' => 'partnerId',
	'salt'      => 'salt',
	'serviceId' => [
		20 => 'Тест',
		30 => 'Минимальный',
		40 => 'Средний премиум',
		50 => 'Максимальный премиум',
	],
];
'modules' => [
	'trinitytv' => [
		'class' => mackiavelly\modules\trinitytv\TrinitytvModule::class,
	],
],

Screenshot