panphp

panphp/pan

PHP MIT Web Dev

A simple, lightweight, and privacy-focused product analytics php package

1.3k stars
63 forks
slow
GitHub +1 / week

1.3k

Stars

63

Forks

15

Open issues

14

Contributors

AI Analysis

Pan is a lightweight, privacy-focused PHP analytics library designed for tracking user interactions (impressions, hovers, clicks) on specific DOM elements via a simple `data-pan` attribute, without collecting personal information. It is purpose-built for Laravel applications—particularly those using Inertia and Livewire—to measure engagement on individual UI components (tabs, buttons, popovers) rather than provide traditional cross-site tracking. Best suited for Laravel developers who need li...

Web Dev Library Discovery value: 6/10
Documentation 7/10
Activity 6/10
Community 7/10
Code quality 5/10

Inferred from signals mentioned in the README (tests, CI, type safety) — not a review of the actual code.

Overall score 7/10

AI's overall editorial judgment — not an average of the bars above, can weigh other factors too.

analytics privacy-focused laravel lightweight dom-tracking
MIT licensed Actively maintained Niche/specialized use case Beginner friendly Production ready
Deep Analysis · Based on README and public signals
3d ago

Lightweight PHP analytics library for tracking UI interactions without personal data collection

Pan is a Laravel-focused PHP package for product analytics that tracks impressions, clicks, and hovers on HTML elements via simple data attributes. It prioritizes privacy by design—collecting no IP addresses or user agents—and integrates directly with Laravel, Livewire, and Inertia. Adoption appears limited to small-to-medium Laravel shops; real-world usage evidence is sparse. The project is actively maintained but has grown modestly since launch in October 2024.

Origin

Launched October 2024, Pan entered a market dominated by JavaScript-heavy analytics (Google Analytics, Mixpanel) and emerging self-hosted alternatives (Plausible, Fathom). It was designed specifically for Laravel developers seeking lightweight, privacy-preserving, in-app analytics without external dependencies or data collection concerns.

Growth

Pan gained 1,269 stars over ~9 months, averaging ~141 stars/month early on, then stabilizing to minimal weekly gains (1 star in final week before cutoff). Packagist downloads and fork activity (63 forks) suggest modest but genuine adoption. Growth appears tied to Laravel ecosystem enthusiasm rather than mainstream analytics adoption; the project has not demonstrated viral or sustained exponential growth patterns.

In production

Adoption not verified. No case studies, user testimonials, or documented deployments mentioned in README. Packagist download badges are referenced but not shown in the truncated README. GitHub forks (63) and modest star growth suggest some real-world use, but scale and depth remain unclear.

Code analysis
Architecture

Based on README: Pan is middleware-injected JavaScript library paired with Laravel backend. Likely uses a simple Eloquent model to store event records (impressions, clicks, hovers). Appears to support whitelisting analytics names and configurable database limits. No architectural details beyond 'lightweight' are documented.

Tests

CI workflow badge present (GitHub Actions), but specific test coverage percentage not documented in README. Test presence is signaled but depth is unknown.

Maintenance

Last push 2026-04-12 (approximately 3 months before analysis date). This indicates ongoing maintenance. Issue/PR velocity not visible from metadata alone; update frequency appears irregular rather than continuous, consistent with a stable, feature-complete tool receiving maintenance rather than active development.

Honest verdict

ADOPT IF: you are a Laravel developer needing simple, privacy-preserving UI interaction tracking (tab views, button clicks, popover hovers) without external dependencies, external data transfer, or complex setup. AVOID IF: you require sophisticated segmentation, funnel analysis, cohort tracking, or cross-session user journeys—Pan is narrowly scoped to element-level events. MONITOR IF: you are considering it for a production Laravel app and want to verify adoption breadth and long-term maintenance; adoption evidence remains sparse as of mid-2026.

Independent dimensions

Mainstream potential

3/10

Technical importance

5/10

Adoption evidence

3/10

Risks
  • Adoption not verified: real-world production usage unclear; limited case study evidence.
  • Narrow scope: only tracks impressions, clicks, hovers; no funnel analysis, user journeys, or retention metrics.
  • Laravel-only: no framework-agnostic version; ecosystem lock-in to Laravel ecosystem.
  • Reporting UI minimal: CLI-based output (`php artisan pan`) is functional but lacks sophisticated dashboarding or export options.
  • Security model depends on admin discipline: whitelisting analytics names helps, but database-level abuse potential if misconfigured (50-record default limit is low but may require tuning).
Prediction

Pan is likely to remain a stable, niche tool within the Laravel ecosystem. It may see modest adoption growth if Laravel developers increasingly reject SaaS analytics, but mainstream analytics adoption (by mid-market and enterprise) will likely remain with established platforms. The project appears to have found its intended audience and will probably enter a slow-growth or stable maintenance phase.

0 found this helpful

Newsletter

Get analyses like this every Monday

Free weekly digest of the most interesting open-source discoveries.

Languages

PHP
79.1%
TypeScript
11.3%
JavaScript
9.2%
Blade
0.4%

Information

Language
PHP
License
MIT
Last updated
3mo ago
Created
21mo ago
Analyzed with
anthropic/claude-haiku-4-5

Stars over time

Loading…

Contributors over time

Top 100 contributors only — repos with more will plateau at 100.

Loading…

Recent releases

No releases published yet.

Similar repos

Openpanel-dev

Openpanel-dev/openpanel

OpenPanel is an open-source analytics platform designed as a privacy-focused...

6.1k TypeScript Data
symfony

symfony/panther

Panther is a PHP library for browser-based end-to-end testing and web scraping...

3.1k PHP Dev Tools
spatie

spatie/laravel-analytics

A Laravel package that integrates Google Analytics data retrieval into Laravel...

3.2k PHP Dev Tools
phpipam

phpipam/phpipam

phpIPAM is a lightweight, open-source web application for managing IP address...

2.8k PHP DevOps
nunomaduro

nunomaduro/phpinsights

PHP Insights is a CLI tool that analyzes PHP code quality, style, architecture,...

5.6k PHP Dev Tools
vs. alternatives
Laravel Pulse (1,698 stars, official Laravel)

Official Laravel tool for app health/performance metrics. Broader scope; Pan is narrower, focused on user interaction tracking. Pulse likely has higher adoption within Laravel. Pan differentiates on privacy and simplicity for UI event tracking.

Openpanel (6,063 stars, TypeScript)

Self-hosted analytics platform with JavaScript SDK. Broader feature set and multi-language support. Openpanel requires external service; Pan is in-app and framework-integrated. Openpanel likely serves larger teams; Pan targets single-project Laravel shops.

Plausible/Fathom (external services)

Privacy-focused SaaS analytics. Require external account/data transfer. Pan avoids external dependencies and keeps data fully internal. Trade-off: Pan lacks sophisticated reporting UI that Plausible/Fathom provide.

Custom middleware analytics

Many Laravel apps build ad-hoc event tracking. Pan commoditizes this pattern. Adoption limited by: developers may already have bespoke solutions, or see custom code as simpler than adding a dependency.

Google Analytics / Mixpanel

Dominant, full-featured analytics. Pan serves users who reject these due to privacy concerns or who need only lightweight UI interaction tracking. Not a direct replacement; serves different value hierarchy.