tsch/groupforcharts
Composer 安装命令:
composer require tsch/groupforcharts
包简介
A simple laravel package for grouping eloquent queries by month for chart use
README 文档
README
Introduction
Group for charts generate an array sorted by months for the current year for your model.
Official Documentation
Installation
composer require tsch/groupforcharts
Once the tsch/groupforcharts package has been installed, you can use it whenever your want.
Examples
Grouping by month
use TSCH\GroupForCharts\GroupForCharts; GroupForCharts::groupByMonth($model) // Example result: [0, 2, 3, 4, 5, 6, 7, 8, 9, 2, 3, 6]
License
Group for charts is open-sourced software licensed under the MIT license.
统计信息
- 总下载量: 7
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-03-15