arnehendriksen/laravel-simple-stats

This package is not installable via Composer 1.x, please make sure you upgrade to Composer 2+. Read more about our Composer 1.x deprecation policy.

Simple site traffic analytics for Laravel.

1.5.1 2019-08-23 07:36 UTC

This package is auto-updated.

Last update: 2020-05-23 09:25:11 UTC


README

Latest Version on Packagist Total Downloads

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,