code16 / sharp-fathom-dashboard
Sharp package that adds a fathom dashboard
Fund package maintenance!
Code16
Installs: 0
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
pkg:composer/code16/sharp-fathom-dashboard
Requires
- php: ^8.4
- code16/sharp: ^9.0
- illuminate/contracts: ^11.0||^12.0
- spatie/laravel-package-tools: ^1.16
Requires (Dev)
- laravel/pint: ^1.14
- nunomaduro/collision: ^8.8
- orchestra/testbench: ^10.0.0||^9.0.0
- pestphp/pest: ^4.0
- pestphp/pest-plugin-arch: ^4.0
- pestphp/pest-plugin-laravel: ^4.0
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, 'Statistiques', 'fas-chart-line');
Done !