Download the PHP package schmeits/filament-pan-analytics-widget without Composer
On this page you can find all versions of the php package schmeits/filament-pan-analytics-widget. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download schmeits/filament-pan-analytics-widget
More information about schmeits/filament-pan-analytics-widget
Files in schmeits/filament-pan-analytics-widget
Package filament-pan-analytics-widget
Short Description A Filament widget that shows the product analytics collected by panphp/pan
License MIT
Homepage https://github.com/schmeits/filament-pan-analytics-widget
Informations about the package filament-pan-analytics-widget
Filament Pan Analytics Widget
A Filament dashboard widget for panphp/pan, the lightweight and privacy-focused product analytics library. It shows the impressions, hovers and clicks that pan collected, with the share of hovers and clicks per impression.

Compatibility
| Package version | Filament | Laravel | PHP |
|---|---|---|---|
| 5.x | 4.x and 5.x | 12 and 13 | 8.3+ |
| 4.x | 3.x | 11 and 12 | 8.3+ |
Version 4.x is for Filament 3, despite the number. It lives on the 4.x branch and still gets fixes.
Installation
This widget reads the pan_analytics table of pan, so install and migrate pan first:
Then install the widget:
Numbers and percentages are formatted in the app locale with the PHP intl extension. Without intl the widget shows plain numbers.
Optionally, publish the translations (English and Dutch are included):
Usage
Add the plugin and the widget to your panel:
Options
Both options also accept a closure, which is evaluated when the widget renders.
Without the plugin on the panel the widget still works: it is visible, without search.
Upgrading from 4.x to 5.x
- Requires Filament 4 or 5 (Laravel 12 or 13). Stay on 4.x for Filament 3.
FilamentPanAnalyticsWidgetPlugin::getSearchable()is nowisSearchable().- The page size options are 5, 10, 25 and 50. The "all" option is gone.
- The unused facade,
FilamentPanAnalyticsWidgetclass, testing mixin, stubs and thefilament-pan-analytics-widget::view namespace are removed. - The
headers.idtranslation key is removed. New keys:not_availableandempty.heading/empty.description. Re-publish the translations if you published them before.
Testing
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.
Need help with Filament?
I'm Tally Schmeits, the maintainer of this package. I build and maintain Filament and Laravel applications for clients: new admin panels and business applications, upgrades to Filament 4 and 5, and taking over existing Filament apps. More at schmeits.com/filament-specialist.
Credits
- Tally Schmeits
- Punyapal Shah for his contribution to Pinkary where I got some inspiration for a refactor
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of filament-pan-analytics-widget with dependencies
filament/filament Version ^4.0|^5.0
panphp/pan Version ^0.1.0
spatie/laravel-package-tools Version ^1.15.0