octoweb/yii2-yandex-metrika

Module to rule your yandex metrika counters.

Installs: 40

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

Type:yii2-extension

1.0.0 2015-10-09 01:19 UTC

This package is not auto-updated.

Last update: 2024-05-01 08:18:19 UTC


README

Module to rule your yandex metrika counters.

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist octoweb/yii2-yandex-metrika "*"

or add

"octoweb/yii2-yandex-metrika": "*"

to the require section of your composer.json file.

Usage

Once the extension is installed, simply activate module in config file:

<?php
    ......
   'modules' => [
        'yandex-metrika' => [
            'class' => 'octoweb\YandexMetrika\Module'
        ],
    ],
    ......

?>

Run migration. Module will create own table for migration history tbl_ym_migrations

yii migrate/up --migrationPath=@vendor/octoweb/yii2-yandex-metrika/migrations --migrationTable=tbl_ym_migrations

.