Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Filament Metrics Posthog Laravel Package

jeffersongoncalves/filament-metrics-posthog

A Filament widget that brings PostHog metrics into your admin panel, letting you display key analytics and product usage data directly on your dashboards without leaving the app.

View on GitHub
Deep Wiki
Context7

Technical Evaluation

Basis: This assessment is derived solely from the 3.1.0 release note; no prior evaluation or package source was supplied. Conclusions are scoped to the change described (a new navigationGroup() configuration method on the plugin object) and to the stated dependency bump on filament-analytics-core 3.1.

Architecture fit

  • The change follows Filament v3's established plugin contract: Plugin::make() returns a configurable plugin object, and fluent setters are the idiomatic way to adapt a plugin to a host panel. Low architectural impedance — no new service provider, no new routes, no schema changes.
  • It mirrors the navigationGroup() convention already used on Filament resources and pages, so it reduces the number of plugin-specific concepts a developer must learn.
  • The one structural change is tighter version coupling: the plugin now requires filament-analytics-core 3.1. Plugin and core versioning must be treated as lockstep from here on.

Integration feasibility

  • Effectively a one-line change in the PanelProvider: ->plugin(AnalyticsPlugin::make()->navigationGroup('Insights')).
  • Requires a composer bump of the core package in the same change set; cannot be adopted independently.
  • The multi-panel case is the strongest argument for adopting it: previously every panel received the same translated group, which is awkward when a panel already organizes navigation differently.

Technical risk: low

  • Additive and opt-in; the stated default preserves the translated group, so existing installs see no behavioral change on upgrade.
  • Risks worth tracking: (1) silent loss of translation if a team passes a hardcoded English string on a non-English panel; (2) unknown evaluation semantics for the Closure variant — timing, arguments, and whether results are cached; (3) plugin 3.1 combined with core <3.1 fails at panel boot.

Key questions

  • Is the Closure evaluated per request at navigation build time, or memoized? What arguments does it receive?
  • Does the signature accept only string, or also Filament 4's NavigationGroup object/enum? This is the forward-compatibility signal for a later Filament 4 migration.
  • What happens when the supplied group name does not match any existing panel group — new group, orphaned item, or error?
  • Is an unmatched or throwing Closure isolated to this page, or does it break the whole panel's navigation?
  • Was the filament-analytics-core 3.1 requirement introduced in this release, or already present in 3.0.x? That determines whether the core bump is genuinely new work.

Integration Approach

Stack fit

  • Laravel 10/11, PHP 8.1+, Filament 3.x panel. No impact on the data layer, queue, or storage; this is presentation-layer configuration only.

Migration path

  1. Raise filament-analytics-core to ^3.1 (hard prerequisite).
  2. Raise the plugin to ^3.1.
  3. Optionally add ->navigationGroup(...) in each PanelProvider that needs it.
  4. Run php artisan optimize:clear (and re-run filament:optimize if used) so cached panel/navigation config is rebuilt.

Compatibility

  • Lockstep with core 3.1; teams pinned to core 3.0.x must remain on plugin 3.0.x.
  • No database migrations, no data backfill, no API surface changes for end users.
  • Rollback is a composer.lock revert plus a cache clear — reversible within minutes.

Sequencing

  • Treat as a routine maintenance-window dependency bump; it can be batched with other Filament plugin upgrades.
  • Verify navigation rendering on one non-default panel before rolling across multi-panel deployments, since that is where the override actually changes what users see.

Operational Impact

Maintenance

  • Ongoing cost is a single config line. The real long-term cost is i18n ownership: teams that override the translated group take responsibility for that string. Recommend routing it through a translation key rather than a literal if the panel serves multiple locales.

Support

  • Expect a small volume of "the settings page moved" tickets immediately after adoption. Document default-versus-override behavior in the upgrade runbook.
  • Filament 4 compatibility for the new signature is an open support question until confirmed.

Scaling

  • No meaningful scaling concern. If the Closure form is evaluated on each navigation render, cost is per-admin-request and negligible; confirm it is not evaluated on every asset or Livewire round-trip before enabling it in a heavily used panel.

Failure modes

  • Core <3.1 with plugin 3.1 → undefined-method / BadMethodCallException at panel boot. Fails loudly and is easy to diagnose.
  • Group name that matches no existing panel group → item may land in an unexpected or newly created group. Cosmetic, not fatal, but confusing to admins.
  • A throwing Closure could break navigation for the entire panel rather than just this page — wrap defensively if the closure reads external state.
  • Stale cached panel config after upgrade → navigation unchanged despite the new call; resolved by clearing caches.

Ramp-up

  • Negligible. Any developer already writing Filament plugins or panel providers can adopt this without training. PM action: add one line to the dependency-upgrade checklist covering the core version prerequisite and the post-upgrade cache clear.
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
tequilarapido/trackit
gregsphotography/site-builder-filament
cabaoctavio/laravel-query-log
gregsphotography/site-builder-components
io-digital/clickatell
snowsoft/laravel-admin
oxygen/auth
relicsoftware/barakah-payment-gateway
tobya/work-with-composer
equipc/laravel-email-validator
equipc/laravel-email-database-log
adedsec/nova-translated-labels
wazza/laravel-db-encryption
hokny/laravel-generator
vonsogt/backup
jengo/queues
jeremykenedy/laravel-observability
coleus/frame
thtg88/journalism
filagora/filagora-ai-forums