jeffersongoncalves/filament-plausible 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

jeffersongoncalves/filament-plausible

最新稳定版本:v3.1.2

Composer 安装命令:

composer require jeffersongoncalves/filament-plausible

包简介

Filament plugin to integrate Plausible Analytics with a settings page to manage your tracking configuration. Privacy-friendly alternative to Google Analytics.

README 文档

README

Filament Plausible

Filament Plausible

Latest Version on Packagist GitHub Code Style Action Status Total Downloads License

A Filament plugin to integrate Plausible Analytics with a settings page to manage your tracking configuration. Privacy-friendly alternative to Google Analytics.

Version Compatibility

Filament Branch Package
5.x 3.x ^3.0
4.x 2.x ^2.0
3.x 1.x ^1.0

Requirements

  • PHP 8.2 or higher
  • Laravel 11.28 or higher
  • Filament 5.x

Installation

You can install the package via composer:

Install the package via Composer:

composer require jeffersongoncalves/filament-plausible:"^3.0"

Publish and run the settings migration from spatie/laravel-settings (if not already done):

php artisan vendor:publish --provider="Spatie\LaravelSettings\LaravelSettingsServiceProvider" --tag="migrations"
php artisan migrate

Publish and run the Plausible settings migration:

php artisan vendor:publish --tag=plausible-settings-migrations
php artisan migrate

Setup

Register the plugin in your PanelProvider:

use JeffersonGoncalves\Filament\Plausible\PlausiblePlugin;

public function panel(Panel $panel): Panel
{
    return $panel
        ->plugins([
            PlausiblePlugin::make(),
        ]);
}

Usage

Once registered, the plugin provides:

  1. Automatic script injection - The Plausible tracking script is automatically injected into the <head> of your Filament panel.
  2. Settings page - A settings page is added to your panel where you can configure your Plausible domain(s) and host URL directly from the admin UI.

Disabling the Settings Page

If you only want the automatic script injection without the settings page:

PlausiblePlugin::make()
    ->settingsPage(false),

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.

统计信息

  • 总下载量: 5
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 3
  • 点击次数: 6
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 3
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-09-30