nickdekruijk/pageviews

Track pageviews in your Laravel app

dev-master 2022-05-03 18:04 UTC

This package is auto-updated.

Last update: 2024-11-30 02:14:12 UTC


README

Latest Stable Version Latest Unstable Version Monthly Downloads Total Downloads License

A simple pageviews counter/tracker for your Laravel Application. Still in early development. It will anonymize visitor ip addresses by default to respect privacy laws.

Installation

You can install the package via composer:

composer require nickdekruijk/pageviews

Getting started

If you don't like the default configuration edit config/pageviews.php after publishing the config file with:

php artisan vendor:publish --tag=config --provider="NickDeKruijk\Pageviews\PageviewsServiceProvider"

Then run the migration

php artisan migrate

Integrate viewing statistics into nickdekruijk/admin package

Add this to the modules array in config/admin.php:

        'pageviews' => [
            'view' => 'pageviews::admin',
            'icon' => 'fa-area-chart',
        ],

Security

If you discover any security related issues, please email git@nickdekruijk.nl instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.