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
Requires
This package is auto-updated.
Last update: 2024-10-18 22:45:21 UTC
README
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...' ], ], ];