oosterhoff / filament-simpleanalytics
Show your skyrocketing SimpleAnalytics stats right in your FilamentPHP application.
Fund package maintenance!
oosterhoff
Requires
- php: ^8.1
- filament/filament: ^3.0
- spatie/laravel-package-tools: ^1.15.0
Requires (Dev)
- nunomaduro/collision: ^7.9
- orchestra/testbench: ^8.0
- pestphp/pest: ^2.1
- pestphp/pest-plugin-arch: ^2.0
- pestphp/pest-plugin-laravel: ^2.0
README
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.