topoff / laravel-user-logger
Laravel User Logger
Installs: 5 542
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
pkg:composer/topoff/laravel-user-logger
Requires
- php: ^8.0
 - illuminate/cache: *
 - illuminate/database: *
 - illuminate/encryption: *
 - illuminate/filesystem: *
 - illuminate/hashing: *
 - illuminate/log: *
 - illuminate/support: *
 - jaybizzle/crawler-detect: ^1.2
 - jenssegers/agent: ^2.6
 - matomo/device-detector: ^6.3.0
 - snowplow/referer-parser: ~0.2
 - topoff/user-agent-parser: ^v6.0
 - ua-parser/uap-php: ^3.9
 
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.14
 - phpunit/phpunit: ^10.0
 
- dev-master
 - v6.2
 - v6.1.0
 - v5.7
 - v5.5
 - 5.4
 - v5.3
 - v5.2
 - v5.1.2
 - v5.1.1
 - v5.1.0
 - v5.0.2
 - v4.0.0
 - v3.0.0
 - v2.0.2
 - v2.0.1
 - v2.0.0
 - v1.1.0
 - v1.0.1
 - v0.16.2
 - v0.16.1
 - v0.16.0
 - v0.15
 - v0.14.0
 - v0.13.1
 - v0.13.0
 - v0.12.0
 - v0.11.1
 - v0.11.0
 - v0.10.2
 - v0.10.1
 - v0.10.0
 - v0.9.2
 - v0.9.1
 - v0.9.0
 - v0.8.2
 - v0.8.1
 - v0.8.0
 - v0.7.2
 - v0.7.1
 - v0.7.0
 - v0.6.7
 - v0.6.6
 - v0.6.5
 - v0.6.4
 - v0.6.3
 - v0.6.2
 - v0.6.1
 - v0.6.0
 - v0.5.4
 - v0.5.3
 - v0.5.2
 - v0.5.1
 - v0.5.0
 - v0.4.1
 - v0.4
 - v0.3
 - v0.2
 - v0.1
 - v0.0.1
 
This package is auto-updated.
Last update: 2025-10-15 13:23:13 UTC
README
This is a Simple user logger and A/B Testing Tool for laravel.
Requirements
Needs Laravel 8
Installation
Using composer is currently the only supported way to install this package.
composer require topoff/laravel-user-logger
Getting started
You can publish & change the configuration with this command:
php artisan vendor:publish
You need to create a connection namend user-logger in your config/database.php
'user-logger' => [ 'driver' => 'mysql', 'host' => env('DB_HOST', '127.0.0.1'), 'port' => env('DB_PORT', '3306'), 'database' => 'userlogger', 'username' => env('DB_USERNAME', ''), 'password' => env('DB_PASSWORD', ''), 'unix_socket' => env('DB_SOCKET', ''), 'charset' => 'utf8mb4', 'collation' => 'utf8mb4_unicode_ci', 'prefix' => '', 'strict' => true, 'engine' => null, ],
Experiences
To start with experiences, A/B testing, set use_experiments in the config file to true and define at least two experiments, per example a,b.
/* * use A/B Testing experiments */ 'use_experiments' => true, /* * active experiments - max 16 chars * crawlers will always run as in the first experiment, but will not be logged */ 'experiments' => [ 'a', 'b', ],
To start e new experience, flush the old data with
php artisan user-logger:flush
Update
This package uses https://github.com/snowplow-referer-parser/referer-parser. There you find information to update the list of known referers, which should sequently be done, manually.