code16/sharp-fathom-dashboard
最新稳定版本:v1.0.1
Composer 安装命令:
composer require code16/sharp-fathom-dashboard
包简介
Sharp package that adds a fathom dashboard
README 文档
README
A Laravel package designed to be used with Sharp to display a Fathom dashboard.
Installation
You can install the package via composer:
composer require code16/sharp-fathom-dashboard
You can publish and run the migrations with:
You can publish the config file with:
php artisan vendor:publish --tag="sharp-fathom-dashboard-config"
Usage
Setup required environment variables
FATHOM_API_KEY= FATHOM_SITE_ID= #Optional, will display a dashboard command to open Fathom FATHOM_ACCESS_URL=
Register the Dashboard Sharp's entity in your Sharp Configuration's Service Provider
$config ->setName('My Project') // ... ->declareEntity(Code16\SharpFathomDashboard\Sharp\Entities\FathomDashboardEntity::class);
Add the dashboard in your Sharp's Menu
return $this // ... ->addEntityLink(Code16\SharpFathomDashboard\Sharp\Entities\FathomDashboardEntity::class, 'Visits', 'fas-chart-line');
Done !
Credits
统计信息
- 总下载量: 26
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-10-24