PHP code example of sergeybruhin / laravel-analytics
1. Go to this page and download the library: Download sergeybruhin/laravel-analytics 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/ */
use SergeyBruhin\Analytics\Drivers\Postgres\Nova\AnalyticsVisit;
use SergeyBruhin\Analytics\Drivers\Postgres\Metrics\PageviewsTrend;
use SergeyBruhin\Analytics\Drivers\Postgres\Metrics\TopTrafficSources;
app(\SergeyBruhin\Analytics\Drivers\DriverManager::class)
->extend('clickhouse', fn ($app) => new ClickHouseStore(/* ... */));