abordage/eloquent-percentile
Laravel package that adds percentile calculations to Eloquent models and the query builder. Compute median, p95, and arbitrary percentiles directly in SQL across columns or expressions via a fluent API, without loading rows into PHP or post-processing collections.
Adopt when:
Look elsewhere when:
Practical adoption checklist: confirm the supported Laravel/PHP matrix against your runtime, run the package's queries against a production-shaped dataset to check index usage and query plans, and verify behavior on the specific database engine you deploy.
For executives: This is a small, low-risk library that lets the team add "typical vs. worst-case" performance metrics to the product without building or buying an analytics platform. The latest release is a maintenance release — the substantive change is that it now supports the newest Laravel version, which keeps our upgrade path clear. Cost is negligible; the benefit is avoided engineering spend on a solved statistical problem.
For engineering: abordage/eloquent-percentile provides percentile aggregates directly on Eloquent models, removing the need for hand-rolled SQL. Version 2.1.0 adds Laravel 13 support and drops Laravel 11 from CI; the remaining changes are Dependabot bumps to GitHub Actions and fetch-metadata. No breaking API changes are described in the notes, but the Laravel 11 test coverage removal should be treated as a de facto support boundary — confirm your target version before adopting, and verify query plans on your database engine since percentile computation can be index-sensitive at scale.
Recommended action: approve for evaluation in a non-critical reporting path; treat as low-priority to adopt unless a percentile feature is already on the roadmap.
How can I help you explore Laravel packages today?