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

User Activity Laravel Package

dp-0/user-activity

A lightweight Laravel package for tracking user activity. Record actions, query activity history, and add simple audit-style timelines to your app using familiar Eloquent models. Easy to install and integrate.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Audit trail & compliance scope: Informs whether you can ship lightweight "who did what, when" logging (login/logout, page visits, custom events) without standing up a separate audit service — useful for SOC 2-style evidence gathering, internal access reviews, and customer-facing "account activity" screens.
  • Engagement & adoption metrics: Enables product analytics on feature usage and session behavior at the individual-user level, supporting roadmap prioritization (which pages/features are actually used), activation-funnel analysis, and churn-risk signals.
  • Security & support workflows: Powers suspicious-login detection, "last active" indicators for CS/success teams, and self-serve troubleshooting ("what did this user do before the error?") — a decision to invest in support tooling vs. rely on third-party observability.
  • Build vs. buy vs. borrow: A concrete data point for the recurring "do we adopt a package or build in-house?" decision. At ~a few hundred lines of logging glue, this package's real value is the schema and event hooks, not novel logic — which argues for borrowing the pattern rather than taking a dependency.
  • Feature gating decisions: Whether to expose activity history as a paid tier feature, an admin-only capability, or omit it from the MVP entirely.

When to Consider This Package

Consider it (or, more accurately, its approach) when:

  • You need basic, first-party activity logging in a Laravel app and want a working data model and event hooks to copy rather than design from scratch.
  • Your requirements are low-stakes and non-regulated — internal admin tools, prototypes, early-stage MVPs, or a throwaway analytics layer.
  • You want minimal footprint: one table, simple Eloquent relations, no queue/warehouse dependency.
  • You're evaluating in-house logging and want a reference implementation to fork and harden.

Look elsewhere — or plan to own the code — because:

  • The repository is archived and last released July 2023. There is no security patching, no Laravel 11/12 compatibility guarantee, and no maintainer to escalate to. Treat it as unmaintained source code, not a dependency.
  • Adoption signal is weak (12 stars). No meaningful community, no third-party battle-testing, no ecosystem of integrations.
  • Scale and retention are unsolved. Synchronous writes to a relational table will not survive high-traffic apps; there is no partitioning, sampling, PII redaction, or retention policy — all of which are mandatory for GDPR/CCPA-sensitive activity data.
  • Mature alternatives exist: spatie/laravel-activitylog (actively maintained, widely used), Laravel's native events + listeners with a queue, or a dedicated product-analytics vendor (PostHog, Amplitude) if you need funnels and cohorts rather than raw rows.
  • You need compliance-grade auditability — immutable logs, tamper evidence, long retention, strict access controls. Do not build that on an archived package.

Recommendation: Do not adopt as a dependency. If a spike is warranted, timebox it to a fork-and-own evaluation, and default to spatie/laravel-activitylog or a vendor for anything customer-facing.

How to Pitch It (Stakeholders)

For executives: A small open-source Laravel add-on that records user logins, page views, and custom events — the raw material for engagement dashboards, support diagnostics, and basic audit evidence. It is not a strategic bet: the project is archived, has negligible adoption, and receives no maintenance. The right framing is "reference design, not procurement." Budget a small engineering spike (1–2 days) to fork the schema and event hooks, or adopt a maintained alternative; either way, the cost is trivial and the value is in unblocking activity-history features without a platform build.

For engineering: Here's a compact, readable implementation of per-user activity logging in Laravel — useful as a pattern for table design and event wiring. It is unmaintained and pinned to 2023-era Laravel, so treat any use as an internal fork you own: add queue-based writes, PII scrubbing, retention/TTL, and index strategy before it touches production. Compare against spatie/laravel-activitylog (maintained, broader event model) and against simply firing domain events into a queued listener — for most teams the latter is less code than integrating a package.

Ask: Approve a bounded evaluation spike with a written build-vs-adopt recommendation, and a default position of "no new archived dependencies."

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.
abbasudo/artisan-route
mirvan/ippanel
ignibyte/aic-framework
glavweb/data-schema-bundle
glavweb/datagrid-bundle
tacticmedia/scim-server
uni-method/frame
neika-ai/sdk
adachsoft/php-code-style
pharaonic/laravel-notification-dependencies
beautinow/translug
dev-brainiac/bot-cloaked
octoberrain/html
octoberrain/extension
octoberrain/exception
octoberrain/contracts
adachsoft/api-version-bundle
cgv/localized-resource
noith/settings
kda/laravel-package