Weave Code
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

Matomo Bundle Laravel Package

core23/matomo-bundle

Symfony bundle that wraps Matomo (Piwik) analytics for Sonata projects. Provides services and Twig helpers to render tracking code and access Matomo statistics via a configurable HTTP client (HTTPlug/Symfony HttpClient) and PSR-7 message factory.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Symfony 8 Migration Roadmap: Confirmed Symfony 8 compatibility with zero breaking changes, enabling seamless analytics integration during upgrades. Aligns with Symfony’s LTS strategy and PHPUnit 13 readiness, while eliminating technical debt from legacy Matomo bundles. The updated Symfony/PHPUnit Bridge v8 and Webpack Encore v16 dependencies further solidify compatibility with modern Symfony 8 stacks, including frontend asset pipeline modernization (via Webpack Encore v16).
  • Build vs. Buy: Reduces 50–70% of dev effort for analytics in Symfony 8, justifying adoption over custom development. Ideal for teams prioritizing speed, compliance (GDPR/CCPA), and low maintenance. The frontend dependency updates (Webpack Encore v16) ensure alignment with Symfony 8’s asset pipeline, reducing friction for frontend-heavy integrations.
  • Use Cases:
    • Symfony 8 Migration Projects: Native integration with Symfony 8’s updated dependency stack (e.g., PHPUnit 13, Symfony 8 components, Webpack Encore v16) without manual migration work.
    • Compliance-Centric SaaS: Self-hosted Matomo analytics for EU/CCPA-regulated apps with full Symfony 8 alignment, ensuring long-term compliance.
    • Monetization & Growth: Track user behavior for A/B testing, funnel optimization, or subscription upsells in modern Symfony stacks.
    • Sonata Admin Modernization: Native Symfony 8 + Sonata Admin support, enabling analytics in admin panels (e.g., tracking dashboard usage).
    • Event-Driven Tracking: Foundation for custom event tracking (e.g., feature flags, form submissions) in Symfony 8.
    • API-Driven Reporting: Enables Matomo API integration in Symfony 8 controllers for dynamic reporting.
    • Frontend Modernization: Updated Webpack Encore v16 support for better performance and compatibility with Symfony 8’s asset pipeline, including modern frontend tooling (e.g., Webpack 5+).

When to Consider This Package

  • Adopt When:
    • Your stack is Symfony 8 + Sonata Admin (now officially supported with updated dependencies like PHPUnit 13, Symfony 8 components, Symfony/PHPUnit Bridge v8, and Webpack Encore v16).
    • You need self-hosted analytics (Matomo/Piwik) with zero migration overhead to Symfony 8.
    • Your team lacks bandwidth for custom Matomo clients or Symfony 8 dependency updates (e.g., PHPUnit 13, Symfony 8 components, or frontend tooling).
    • You require basic-to-intermediate tracking (pageviews, events) without real-time needs (Matomo’s async processing applies).
    • You’re modernizing legacy Sonata Admin backends to Symfony 8 and need analytics parity.
    • You want to future-proof your analytics infrastructure for Symfony 9+ with updated dependencies, including frontend tooling (Webpack Encore v16).
    • Your project relies on modern frontend stacks (e.g., Symfony 8’s asset pipeline) and requires seamless integration with analytics.
  • Look Elsewhere If:
    • You’re not using Symfony 8/Sonata Admin (e.g., Laravel, React, or custom PHP stacks).
    • You need real-time analytics (this bundle relies on Matomo’s async processing; consider Matomo’s native JavaScript tracker for low-latency needs).
    • Your use case demands custom Matomo plugins (e.g., heatmaps, session recordings) or multi-tenant analytics (single Matomo instance per app assumed).
    • Active maintenance is critical: Low adoption metrics (6 stars, 0 dependents) persist; vet the maintainer’s responsiveness for long-term support.
    • You require PHP < 8.1 or Symfony < 6.0 (this release drops older support entirely).
    • Your project relies on legacy frontend tooling (e.g., Webpack Encore < v16) and cannot accommodate the updated dependencies.

How to Pitch It (Stakeholders)

For Executives: *"This updated bundle now fully supports Symfony 8, letting us embed self-hosted Matomo analytics into our modernized stack with zero dev lift—cutting Google Analytics dependency while keeping data in-house. For $0 cost (MIT license), we gain:

  • GDPR/CCPA compliance with self-hosted tracking.
  • User behavior insights for A/B testing, funnel optimization, or monetization.
  • Symfony 8 readiness with updated dependencies (PHPUnit 13, Symfony 8 components, Symfony/PHPUnit Bridge v8, and Webpack Encore v16), reducing migration risk.
  • Future-proofing for Symfony 9+ with dependency updates, ensuring long-term alignment.
  • Modern frontend integration via Webpack Encore v16, aligning with Symfony 8’s asset pipeline for seamless analytics tracking. The bundle’s lightweight design keeps costs low, and its Symfony 8 alignment future-proofs our analytics infrastructure while supporting modern frontend workflows."*

For Engineering: *"The NucleosMatomoBundle 4.4.0 now includes:

  • Official Symfony 8 support (no manual migration work; handles Symfony 8’s updated dependency stack).
  • 5-minute setup (Composer + config) with zero breaking changes for existing users.
  • PHPUnit 13 + Symfony 8 components compatibility, ensuring long-term maintainability.
  • Modernized frontend stack (Webpack Encore v16) for better asset pipeline integration in Symfony 8, including support for modern frontend tooling (e.g., Webpack 5+).
  • Future-proofing for Symfony 9+ with updated dependencies (e.g., Symfony/PHPUnit Bridge v8). Tradeoffs:
  • Limited to basic tracking; for advanced use cases, pair with Matomo’s API or fork.
  • Async processing may introduce latency for real-time needs.
  • Frontend dependency updates (Webpack Encore v16) may require adjustments if your project relies on legacy tooling. Recommendation: Pilot in a non-critical Symfony 8 module first to validate performance, compatibility, and frontend integration."*

For Design/UX: "This update lets us track user interactions in Sonata Admin panels (e.g., which dashboards are most visited) to inform UX improvements—now with full Symfony 8 compatibility and modern frontend support (Webpack Encore v16). No user-facing changes required; analytics run silently in the background. Ideal for data-driven design decisions in modernized Symfony stacks, including frontend-heavy applications."

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.
emuniq/filament-browser-notifications
syriable/filament-translator
hungnm28/livewire-form
wenprise/eloquent
crudly/encrypted
fadion/bouncy
cuci/prototurk-sdk
gos/pubsub-router-bundle
cuci/prototurk-sdk-symfony
clementtalleu/easyadmin-markdown-bundle
codeflextech/permission-manager
karnoweb/livewire-datepicker
sayedenam/sayed-dashboard
milito/query-filter
apiboxsym/user-bundle
apiboxsym/health-check-bundle
jayeshmepani/jpl-moshier-ephemeris-php
elnasnato/laraliveui
labrodev/rest-sdk
sampaui/sampaui