{"repo":"eliseekn/laravel-metrics","free":true,"listed":false,"github":"https://github.com/eliseekn/laravel-metrics","clone":"git clone https://github.com/eliseekn/laravel-metrics.git","description":"Generate easily metrics and trends data of your models for your dashboards.","language":"PHP","stars":137,"topics":["laravel","php","charts","dashboard","laravel-package","trend"],"license":"MIT","category":"dashboards-admin","readme_excerpt":"Metrics for Laravel Generate easily metrics and trends data of your models for your dashboards. Requirements Note : For Laravel 13.x support check 4.x branch. Installation Features - MySQL, PostgreSQL and SQLite support - Verbose query builder - Custom columns and table definition - Days and months translation with Carbon Usage With Eloquent Query Import the Eliseekn\\LaravelMetrics\\LaravelMetrics class in your controller and use it as follows : - Basic usage - Using custom query - Using custom date column - Using date range - Using custom label column - Using custom table With Query Builder With traits Add HasMetrics trait to your models and use it as follows : Types of periods Note : Periods are defined for the current day, week, month or year by default. However, you can define a specific value using dedicated methods. For example: Types of aggregates Types of data Note 1 : The trends method can generate data in percentage format when the $inPercent parameter is set to true . Note 2 : The metricsWithVariations method generates metrics with variations from the $previousPeriod period ( day , week , month , or year ). The $previousCount parameter specifies the count for the past period. Set $inPercent parameter to true to get variations result in percent. Combining periods and aggregates Combining different time periods and data aggregates can enhance your overall experience. For example : Possible combinations : Fill missing data with default value You can fill missing data w","default_branch":null,"files":null,"tree":[],"storefront":"/r/eliseekn","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/eliseekn/laravel-metrics/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}