Generate trends for your models. Easily generate charts or reports.
1.1k
Stars
101
Forks
36
Open issues
12
Contributors
AI Analysis
Laravel Trend is a PHP package that generates aggregated data trends (counts, sums, averages, min/max) for Eloquent models across various time intervals (minute to year), making it easy to build charts and reports without repetitive query logic. It serves Laravel developers who need to build analytics dashboards or reporting features with minimal boilerplate, and is not intended for non-Laravel applications or use cases requiring custom statistical modeling.
Inferred from signals mentioned in the README (tests, CI, type safety) — not a review of the actual code.
AI's overall editorial judgment — not an average of the bars above, can weigh other factors too.
Laravel query aggregation library for time-series trends, metrics, and chart data generation
Laravel Trend is a PHP package that abstracts time-series aggregation (count, sum, average, min, max) across multiple time intervals (minute to year) for Eloquent models. Built for Laravel developers who need to generate reporting data or chart inputs without writing raw SQL or custom query logic. Adoption appears concentrated within the Laravel ecosystem; real-world usage at scale is not publicly documented.
Created October 2021 by Lars Klopstra and contributors. Positioned as a fluent, reusable alternative to hand-writing aggregation queries for each dashboard or report feature. Gained moderate traction within Laravel community over 4+ years, reaching ~1,100 GitHub stars.
Initial growth phase (2021–2023) likely driven by Laravel developers seeking a consistent API for trend generation. Recent growth has plateaued: 1 star in last 7 days suggests stable but not expanding user base. Last commit March 2026 indicates active but light-touch maintenance. Growth pattern suggests adoption has settled into a defined but narrow user segment rather than expanding beyond specialist use cases.
Adoption not verified. No documentation of production usage, case studies, or organizational adoption in README. Package appears to solve a genuinely common need (trend generation for reporting) but evidence of actual deployment at scale is absent from available metadata.
Based on README: fluent builder pattern with chainable methods (model/query start, dateColumn, between, interval, aggregate). Supports four database drivers (MySQL, MariaDB, SQLite, PostgreSQL). Likely abstracts database-specific date grouping/formatting logic. No evidence in README of middleware, caching, or advanced query optimization strategies.
Not documented in README. No reference to testing framework, CI/CD pipeline, or test examples provided.
Last push 2026-03-30 (93 days ago relative to 2026-07-01) indicates recent activity. However, frequency of commits not visible from metadata alone. Single star in past 7 days and 100 forks (vs. 1,116 stars) suggests limited new adoption momentum. Maintenance appears passive (bug fixes/compatibility) rather than active development of new features.
ADOPT IF: you are building Laravel applications with reporting/dashboard needs, prefer fluent APIs over raw SQL, work exclusively with supported databases (MySQL, MariaDB, SQLite, PostgreSQL), and your trend data fits within the supported aggregations (count, sum, average, min, max). AVOID IF: you need complex multi-table joins, window functions, or advanced statistical aggregations; your data model deviates significantly from standard Eloquent created_at patterns; or you require extensive ecosystem integrations (charting libraries are not bundled). MONITOR IF: you are evaluating this for mission-critical reporting infrastructure; real-world usage evidence is sparse, maintenance is light-touch, and the package's resilience under high-volume data loads is not publicly documented.
Independent dimensions
Mainstream potential
3/10
Technical importance
5/10
Adoption evidence
2/10
- Adoption not verified at scale; limited public evidence of production deployments means edge cases and performance limitations may be undiscovered.
- Maintenance appears passive (bug fixes only); feature requests and architectural improvements may experience long response times.
- Package is tightly coupled to Laravel Eloquent; upgrading Laravel or switching ORM would require replacement.
- No documented test coverage or benchmarking; performance characteristics under large datasets (millions of records, complex date ranges) are unclear.
- Limited to four database drivers and five standard aggregation functions; non-standard databases or custom aggregations require workarounds or custom patches.
Likely to remain a stable, niche utility for Laravel reporting. Adoption will probably plateau within the Laravel ecosystem; slow maintenance suggests the maintainer is satisfied with current feature scope. Unlikely to expand significantly unless paired with higher-visibility charting or BI ecosystem integrations.
Newsletter
Get analyses like this every Monday
Free weekly digest of the most interesting open-source discoveries.
Languages
Information
- Language
- PHP
- License
- MIT
- Last updated
- 3mo ago
- Created
- 58mo ago
- Analyzed with
- anthropic/claude-haiku-4-5
Stars over time
Contributors over time
Top 100 contributors only — repos with more will plateau at 100.
Open issues
Top contributors
Recent releases
Similar repos
stefanzweifel/laravel-stats
Laravel Stats is a Laravel/Lumen package that generates detailed insights about...
spatie/laravel-fractal
A Laravel and Lumen wrapper around the Fractal data transformation library that...
beyondcode/laravel-er-diagram-generator
This PHP package generates entity-relationship diagrams by inspecting Laravel...
| Repository | Stars | Week Δ | Language | Score | Updated |
|---|---|---|---|---|---|
|
|
1.1k | +2 | PHP | 7/10 | 3mo ago |
|
|
1.7k | — | PHP | 8/10 | 4mo ago |
|
|
1.9k | — | PHP | 8/10 | 2w ago |
|
|
4.9k | — | PHP | 8/10 | 1w ago |
|
|
2k | — | PHP | 7/10 | 4mo ago |
|
|
1.7k | — | PHP | 8/10 | 3d ago |
Laravel Trend eliminates boilerplate for time-series aggregation; custom queries are more flexible but require repeated logic per report.
Datatables focuses on server-side table rendering; Laravel Trend focuses upstream on aggregating model data. Complementary rather than competitive.
Spatie's DTO/data transfer object package; Laravel Trend is aggregation-focused, not data structuring. Different concerns.
Laravel Trend provides Eloquent-integrated DSL; raw queries offer lower-level control at the cost of verbosity and database coupling.
External analytics platforms handle complex ETL/visualization; Laravel Trend is lightweight in-app aggregation for simple dashboards.