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

Metrics Laravel Package

directorytree/metrics

Record and query metrics in Laravel with a simple, elegant API. Track page views, API calls, signups, and other events with optional values, categories, dates, hourly buckets, model-scoped metrics, and custom attributes. Supports Redis and extensible drivers.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Feature Development: Enables rapid implementation of analytics features (e.g., user engagement, API usage, conversion tracking) without building custom solutions.
  • Roadmap Prioritization: Justifies investment in data-driven product decisions (e.g., A/B testing, feature adoption metrics) by providing a scalable metrics infrastructure.
  • Build vs. Buy: Avoids reinventing the wheel for metric collection/querying in Laravel, reducing dev time and technical debt.
  • Use Cases:
    • Product Analytics: Track page views, feature usage, or funnel conversions.
    • API Monitoring: Measure request volumes, latency, or error rates by endpoint.
    • User Behavior: Associate metrics with Eloquent models (e.g., "logins per user").
    • Segmentation: Analyze metrics by custom attributes (e.g., traffic sources, device types).

When to Consider This Package

  • Adopt if:

    • Your Laravel app needs lightweight, structured metric tracking (e.g., counts, aggregates).
    • You require hourly/daily granularity with minimal setup.
    • You want model association (e.g., metrics tied to users/orders).
    • Your team prioritizes developer velocity over custom solutions.
    • You need Redis-backed batching for high-traffic scenarios.
  • Look elsewhere if:

    • You require real-time analytics (e.g., streaming metrics with sub-second latency).
    • Your use case demands complex aggregations (e.g., averages, percentiles) beyond simple counts.
    • You’re using a non-Laravel stack or need multi-language support.
    • You need enterprise-grade retention policies (e.g., 10+ years of historical data).
    • Your team lacks PHP/Laravel expertise to customize the package.

How to Pitch It (Stakeholders)

For Executives: "This package lets us track critical product metrics (e.g., signups, API usage) with minimal engineering effort. It’s like Google Analytics for Laravel—built-in, scalable, and ready to power data-driven decisions. For example, we could instantly measure feature adoption or debug traffic spikes without custom code."

For Engineering: *"DirectoryTree/Metrics provides a battle-tested way to record and query metrics in Laravel. Key benefits:

  • Performance: Redis-backed batching reduces DB load for high-traffic apps.
  • Flexibility: Supports hourly/daily granularity, model associations, and custom attributes.
  • Integration: Works seamlessly with Laravel’s Eloquent and Carbon.
  • Maintenance: MIT-licensed, actively maintained, and avoids reinventing metric storage/querying. Example use case: Track auth:logins per user or api:requests by endpoint with one line of code. Querying is as simple as Metric::thisMonth()->where('name', 'signups')->sum('value')."*
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.
calmfox/watch-sylius
damienfern/grpc-symfony-bundle
atoolo/index-bundle
atoolo/genai-bundle
coprotoai/laravel-ticket
davidjln/llm-carbon-bundle
cryonighter/valid-request-bundle
coolms/taxonomy-bundle
coolms/field-bundle
articulate-orm/symfony
aaix/laravel-tall-architect
ephoto/akeneo-connector
emmanuelballery/eb-plantumlbundle
emielburgman/symfony-visitor-beacon
emielburgman/symfony-visit-storage
emielburgman/symfony-security-headers
emielburgman/symfony-log-viewer
emarref/xdebug-bundle
emarref/pubnub-bundle
elriseio/finance-money-bundle