oosterhoff/filament-simpleanalytics

Show your skyrocketing SimpleAnalytics stats right in your FilamentPHP application.

v0.0.1 2024-07-30 16:29 UTC

This package is auto-updated.

Last update: 2024-10-30 17:17:17 UTC


README

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads

This is where your description should go. Limit it to a paragraph or two. Consider adding a small example.

Installation

You can install the package via composer:

composer require oosterhoff/filament-simpleanalytics

Configuration

You can publish the config file with:

php artisan vendor:publish --tag="filament-simpleanalytics-config"

After publishing the config file, you need to set up your SimpleAnalytics credentials in your .env file:

SIMPLE_ANALYTICS_API_KEY=your-api-key
SIMPLE_ANALYTICS_WEBSITE=your-website

If you have a public SimpleAnalytics site, you can leave the SIMPLE_ANALYTICS_API_KEY empty.

Usage

You can now register the widgets in your Filament dashboard or pages.

use Oosterhoff\FilamentSimpleanalytics\Widgets\VisitorsPageviewsWidget;
->widgets([
    VisitorsPageviewsWidget::class,
])

Testing

composer test

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

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