Download the PHP package maksuco/reports without Composer
On this page you can find all versions of the php package maksuco/reports. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download maksuco/reports
More information about maksuco/reports
Files in maksuco/reports
Package reports
Short Description Get visits, pageviews etc
License MIT
Informations about the package reports
Reports
This package helps manage analytics and counts.
Installation
This packages requires Spatie/Analytics for the charts You can install the package via composer:
This Package works with autodiscovery in Laravel +5.5, but is compatible with older versions
Usage
Spatie Laravel-Analytics is requiered to use google analytics, the package is automatically install but it needs the configuration, so you can also use methods like:
https://github.com/spatie/laravel-analytics
Analytics Helpers
Analytics:Get the dates from today minus.... $period = 'month','day','year','all' $period2 = 1,2,3, etc..
Analytics:Get the visits and pageviews $path = /someurl/blogname
Analytics:Get the visits and pageviews for Charts $path = /someurl/blogname return [$visitors,$pageviews,$labels];
Analytics:Get the visits and pageviews for Charts
Reports
Get the $count and $sum of 2 fields per table, the date field is the one to be used, example: created_at
Get data for a chart Report, same as before, but this returns 'total_sum', 'total_count', 'date', 'sum' and 'count' so you can use it in charts data sets
Security
If you discover any security related issues, please report it.
Credits
License
The MIT License (MIT). Please see License File for more information.