zikwall/vk-tv-backend

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

Back-end for VK TV

Installs: 10

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 1

Open Issues: 0

Language:JavaScript

dev-master 2020-07-06 10:37 UTC

This package is auto-updated.

Last update: 2021-04-06 12:22:50 UTC


README

Make easy

This is a full-featured module for creating applications and sites designed for television broadcasting.

End[points]

Installation

composer require zikwall/vk-tv-backend

Develop mode

{
    "minimum-stability": "dev",
    "repositories": [
        {
            "type": "git",
            "url": "https://github.com/zikwall/vk-tv-backend.git"
        }
    ],
    "require": {
        "zikwall/vk-tv-backend": "dev-master"
    }
}

Configuration

Web & console aplications config

'bootstrap' => [\zikwall\vktv\Bootstrap::class],
...

'modules' => [
      'vktv' => [
            'class' => \zikwall\vktv\Module::class,
      ],
],

Mail

'components' => [
    'mailer' => [
                'class' => 'yii\swiftmailer\Mailer',
                // send all mails to a file by default. You have to set
                // 'useFileTransport' to false and configure a transport
                // for the mailer to send real emails.
                'useFileTransport' => false,
                'enableSwiftMailerLogging' => true,
                'transport' => [
                    'class' => 'Swift_SmtpTransport',
    	            'host' => 'smtp.mail.ru', // beget is smtp.beget.com
    	            'username' => '*******.*********@mail.ru',
    	            'password' => '*************************',
    	            'port' => '465',
    	            'encryption' => 'ssl',
                ],
    ],
    //... other components
]

Migrations

php yii migrate --migrationPath=@vktv/migrations

Console App

  1. Scan and load playlists into the database, run: php yii vktv/generate
  2. Scan and add TV programs to the database from XMLTV, run: php yii vktv/generate/epg-xmltv
  3. Run Calculate content ratings: php7.3 yii vktv/recount-rating/calculate