PHP code example of thebearcod / yandex-metrika-sdk
1. Go to this page and download the library: Download thebearcod/yandex-metrika-sdk library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
thebearcod / yandex-metrika-sdk example snippets
$counterId = '';
$token = '';
// CDP API
$cdp = new \WebCrea\YandexMetrikaSdk\Api\CdpApi($token);
// Management API
$management = new \WebCrea\YandexMetrikaSdk\Api\ManagementApi($token);