jeffersongoncalves/filament-metrics-fathom
Composer 安装命令:
composer require jeffersongoncalves/filament-metrics-fathom
包简介
Filament plugin for Fathom Analytics metrics - dashboard widgets for pageviews, visitors, top pages, referrers, browsers, countries and devices.
关键字:
README 文档
README
Filament Metrics Fathom
A Filament plugin that integrates Fathom Analytics into your admin panel. Get real-time visitor counts, pageview charts, top pages, referrers, browsers, countries and device breakdowns — all from your Filament dashboard.
Features
- Settings page to configure Fathom API credentials directly from the panel
- 7 ready-to-use dashboard widgets (stats, charts, tables)
- Real-time visitor count with automatic polling (every 30s)
- Caching built-in to respect Fathom API rate limits (10 req/min)
- Multi-language support (English and Brazilian Portuguese)
- Fully configurable: enable/disable settings page and widgets independently
Version Compatibility
| Plugin | Filament | Laravel | PHP | Livewire |
|---|---|---|---|---|
| 1.x | 3.x | 10.x / 11.x | 8.2+ | 3.x |
| 2.x | 4.x | 11.x+ | 8.2+ | 3.x |
| 3.x | 5.x | 11.x+ | 8.2+ | 4.x |
Requirements
- PHP 8.2+
- Filament ^5.0
- jeffersongoncalves/laravel-metrics-fathom ^1.0
- filament/spatie-laravel-settings-plugin ^5.0
Installation
You can install the package via composer:
composer require jeffersongoncalves/filament-metrics-fathom:"^3.0"
Publish and run the settings migration from the base package:
php artisan vendor:publish --tag="metrics-fathom-settings"
php artisan migrate
Setup
Register the plugin in your Filament panel provider:
use JeffersonGoncalves\Filament\MetricsFathom\FathomMetricsPlugin; public function panel(Panel $panel): Panel { return $panel // ... ->plugin(FathomMetricsPlugin::make()); }
Configuration
You can enable or disable features individually:
FathomMetricsPlugin::make() ->settingsPage(false) // Disable the settings page ->widgets(false) // Disable all widgets
Widgets
The plugin provides 7 dashboard widgets:
| Widget | Description | Type |
|---|---|---|
| Current Visitors | Real-time visitor count with top pages | Stats Overview (polls every 30s) |
| Pageviews Chart | Visits & pageviews over the last 30 days | Line Chart |
| Top Pages | Most visited pages with visit/pageview counts | Table |
| Top Referrers | Traffic sources with visit/unique counts | Table |
| Top Browsers | Browser distribution | Doughnut Chart |
| Top Countries | Country distribution with visit/unique counts | Table |
| Top Devices | Device type distribution (desktop, mobile, tablet) | Doughnut Chart |
All widgets include:
- Automatic error handling with user-friendly messages
- "Not Configured" state when API token is missing
- Built-in caching to respect Fathom API rate limits
- Multi-language support (English and Portuguese)
Translations
The plugin supports English (en) and Brazilian Portuguese (pt_BR). You can publish the translations:
php artisan vendor:publish --tag="filament-metrics-fathom-translations"
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.
jeffersongoncalves/filament-metrics-fathom 适用场景与选型建议
jeffersongoncalves/filament-metrics-fathom 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 18 次下载、GitHub Stars 达 1, 最近一次更新时间为 2026 年 03 月 03 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「analytics」 「Metrics」 「laravel」 「dashboard」 「widgets」 「filament」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 jeffersongoncalves/filament-metrics-fathom 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 jeffersongoncalves/filament-metrics-fathom 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 jeffersongoncalves/filament-metrics-fathom 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Analytics chooser extensions for site settings.
A abstraction for generating metrics in Laravel.
Laravel SDK for working with prometheus metrics
Production-ready Laravel Prometheus metrics package with built-in collectors for HTTP, database, cache, queue, events, errors, filesystem, and mail monitoring
A Laravel Nova Card to show Fathom Analytics stats.
Tool to show code coverage metrics, measured by PHP Unit in Cobertura format, in console and CI/CD pipeline
统计信息
- 总下载量: 18
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 30
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-03-03
