{"repo":"omaressaouaf/laravel-statistician","free":true,"listed":false,"github":"https://github.com/omaressaouaf/laravel-statistician","clone":"git clone https://github.com/omaressaouaf/laravel-statistician.git","description":"A Laravel package for generating clean application statistics from Eloquent models, query builders, or plain tables","language":"PHP","stars":10,"topics":["analytics","dashboard","laravel","php","statistics","stats","trends"],"license":"MIT","category":"dashboards-admin","readme_excerpt":"Laravel Statistician A Laravel package for generating clean application statistics from Eloquent models, query builders, or plain tables. Features - Aggregate stats: count , sum , avg , min , max - Date-range filtering with start() and end() - Date-grouped statistics for charts - Percentage change between two periods, Trend statistics - Supports Eloquent builders, query builders, model classes, and table names - Multiple statistics in one call - Cache support --- Installation Install via Composer: --- Usage Basic Aggregate Statistic Custom Key Date Range Sum / Avg / Min / Max Date Grouped Statistics Useful for charts and dashboards. Example result: Percentage Change Using Query Builders Multiple Sources --- Caching Cache statistics for a specific number of seconds: Cache until a specific date: Clear cache conditionally: --- Custom Statisticians The package is fully extensible. You can create your own statisticians by implementing one of the provided contracts: - OneQueryStatistician – for statistics that can be computed with a single query for all provided sources (e.g: AggregateStatistician ). - MultiQueryStatistician – for statistics that require multiple queries or more advanced calculations per each source (e.g: DateGroupedAggregateStatistician ). A custom statistician works with its own source object, allowing you to encapsulate configuration and keep your API consistent with the built-in statisticians. Example Then you can use your statistician in your codebase. This ap","default_branch":null,"files":null,"tree":[],"storefront":"/r/omaressaouaf","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/omaressaouaf/laravel-statistician/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."}