arnehendriksen / laravel-simple-stats
Simple site traffic analytics for Laravel.
This package's canonical repository appears to be gone and the package has been frozen as a result.
1.5.1
2019-08-23 07:36 UTC
Requires
- php: >=7.1.0
- jaybizzle/crawler-detect: ^1.2
README
This package uses a simple middleware to track page requests, and stores them in your application's database. You can easily exclude ips, envs, uris, and user agents, by adding them to the simple-stats config file after it's published.
Installation
You can install the package via composer:
composer require arnehendriksen/laravel-simple-stats
The package will automatically register itself.
You can publish the config file with:
php artisan vendor:publish --provider="arnehendriksen\LaravelSimpleStats\SimpleStatsServiceProvider"
Next, run the migrations:
php artisan migrate
To begin tracking page requests, add the following middleware to your 'web' middleware group:
\arnehendriksen\LaravelSimpleStats\Middleware\Stats::class,