Download the PHP package sakanjo/laravel-easy-metrics without Composer
On this page you can find all versions of the php package sakanjo/laravel-easy-metrics. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package laravel-easy-metrics
đĨ Easy metrics
Easily create metrics for your application.
⨠Help support the maintenance of this package by sponsoring me.
Designed to work with Laravel, Filament, Easy enum, and more.
đ Supported metrics
- Bar metric
- Doughnut metric
- Line metric
- Pie metric
- Polar metric
- Trend metric
- Value metric
Table of contents
- Install
- Usage
- Value metric
- Doughnut metric
- Trend metric
- Other metrics
- Ranges
- Available custom ranges
- Growth rates
- Using value metric
- Using trend metric
- Using doughnut metric
- Available growth rate types
- Tips
- using getLabel
- Practical examples
- Filamentphp v3 widgets
- Support the development
- Credits
- License
đĻ Install
đĻ Usage
Value metric
Query types
The currently supported aggregate functions to calculate a given column compared to the previous time interval / range
Min
Max
Sum
Average
Count
Doughnut metric
Query types
The currently supported aggregate functions to calculate a given column compared to the previous time interval / range
Min
Max
Sum
Average
Count
Trend metric
Query types
The currently supported aggregate functions to calculate a given column compared to the previous time interval / range
Min
Max
Sum
Average
Count
Other metrics
Bar extends Trend
Line extends Trend
Doughnut extends Pie
Polar extends Pie
Ranges
Every metric class contains a ranges method, that will determine the range of the results based on it's date column.
Available custom ranges
Range::TODAY
Range::YESTERDAY
Range::MTD
Range::QTD
Range::YTD
Range::ALL
Growth rates
Growth rate, expressed as both a value and a percentage, measures the change in a quantity over time, showing the speed of its expansion or contraction in both absolute and relative terms.
Using Value metric
Using Trend metric
Using Doughnut metric
Available growth rate types
GrowthRateType::Value
GrowthRateType::Percentage
đĨ Tips
Using getLabel
You can use the getLabel
method to customize the retreived data labels, for example:
đĨ Practical examples
Filamentphp v3 widgets
đ Support the development
Do you like this project? Support it by donating
Click the "đ Sponsor" at the top of this repo.
ÂŠī¸ Credits
- Salah Kanjo
- All Contributors
đ License
MIT License Š 2023-PRESENT Salah Kanjo
All versions of laravel-easy-metrics with dependencies
illuminate/support Version ^10.0|^11.0|^12.0
illuminate/database Version ^10.0|^11.0|^12.0
illuminate/http Version ^10.0|^11.0|^12.0