euromd/yii2-yandex-metrika

Yii2-wrapper for Yandex Metrika API

Installs: 484

Dependents: 0

Suggesters: 0

Security: 0

Stars: 4

Watchers: 4

Forks: 2

Open Issues: 0

Type:yii2-extension

0.1.2 2014-12-19 04:37 UTC

This package is auto-updated.

Last update: 2024-12-18 23:06:56 UTC


README

Total Downloads Latest Stable Version Latest Unstable Version License

Installation

The preferred way to install this extension is through composer.

Either run

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

or add

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

to the require-dev section of your composer.json.

General Usage

To use this extension, simply add the following code in your application configuration:

return [
    //....
    'components' => [
        'yandexMetrika' => [
            'class' => '\EuroMD\yandexMetrika\Client',
            'clientID' => 'Your Yandex App client ID...',
            'clientSecret' => 'Your Yandex App client secret...'
        ],
    ],
];