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.
Adopt if:
Look elsewhere if:
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:
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')."*How can I help you explore Laravel packages today?