Download the PHP package ondrej-vrto/laravel-visitors without Composer
On this page you can find all versions of the php package ondrej-vrto/laravel-visitors. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download ondrej-vrto/laravel-visitors
More information about ondrej-vrto/laravel-visitors
Files in ondrej-vrto/laravel-visitors
Package laravel-visitors
Short Description Laravel package that allows you to associate views with Eloquent models and create traffic and statistics.
License MIT
Homepage https://github.com/OndrejVrto/laravel-visitors
Informations about the package laravel-visitors
A Laravel package that allows you to track Eloquent model traffic.
Prologue
This tool enables basic monitoring of user activity without the use of cookies or consent according to the European GDPR guidelines. It creates overall statistics, which take a long time to generate, in the background, and therefore displaying results even in large volumes of data is fast.
Installation
You can install the package via composer:
Publish
Basic usage visit counter
Apply contract "Visitable" and trait "InteractsWithVisits" to model
Some in frontend controler add visit counter.
Basic usage display statistics
In dashboard
Or list of posts in admin controller.
Or in detail post in admin controller.
Customization visit counter
Increment methods
Options
Manually added data.
Pruning models
Note: Pruning run automaticaly before start generator statistics and trafic
Generate traffic data
Note: Queue service is required
Scheduler is implement in package.
If is set schedule_generate_traffic_data_automaticaly
to true
nothing else needs to be set up.
View traffic data
With preety graph in SVG, count of language and operating system statistics.
Aggregated data from several models
Note: Return only one record
Trafic for a one specific model
Note: Return only one record
Other options similar to statistics in the previous chapter
Lists of top visit models
Note: Return Collection of model instances Traffic
Other options
Relationship scope for model is posible
Join all traffic data to Visitable model
Get the status and additional data about the latest traffic generation process
Displays the parameters of the last run of the generator and the difference from the current data
Language
Enum classes 'OperatingSystem' and 'VisitorCategory' are translatable.
Configuration package
Testing
Changelog
Please see CHANGELOG for more information on what has changed recently.
Credits
- Ondrej Vrťo
- All Contributors
Alternatives
License
The MIT License (MIT). Please see License File for more information.
All versions of laravel-visitors with dependencies
illuminate/contracts Version ^9.0
illuminate/support Version ^9.0
jaybizzle/crawler-detect Version ^1.2
markbaker/enumhelper Version 1.0.2
ondrej-vrto/php-linechart Version 1.1.0
spatie/laravel-package-tools Version ^1.13.0