PHP code example of koparal / laravel-yandex-metrica
1. Go to this page and download the library: Download koparal/laravel-yandex-metrica 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/ */
koparal / laravel-yandex-metrica example snippets
use YandexMetrica;
YandexMetrica::getGeneralAnalytics(7);
YandexMetrica::getGeneralAnalytics(7);
YandexMetrica::getOrganicData(7);
YandexMetrica::getDurationData(7);
YandexMetrica::getPageAnalytics(7);
YandexMetrica::getCountries(7);
YandexMetrica::getBrowserAndSystems(7);
bash
php artisan vendor:publish