PHPackages                             tsch/groupforcharts - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. tsch/groupforcharts

ActiveLibrary

tsch/groupforcharts
===================

A simple laravel package for grouping eloquent queries by month for chart use

1.0.0(4y ago)17MITPHPPHP &gt;=7.3

Since Mar 15Pushed 4y ago1 watchersCompare

[ Source](https://github.com/tomschiavi/groupforcharts)[ Packagist](https://packagist.org/packages/tsch/groupforcharts)[ RSS](/packages/tsch-groupforcharts/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (2)Versions (2)Used By (0)

Group for charts
================

[](#group-for-charts)

[![Total Downloads](https://camo.githubusercontent.com/d5665a9ace9907bcc8708207199dad551e140bd349b1d114681d7f5202345993/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f747363682f67726f7570666f72636861727473)](https://packagist.org/packages/tsch/groupforcharts)[![Latest Stable Version](https://camo.githubusercontent.com/6be03e4239c193afb2db216a13de00bf562243d5fdd1e4ee4ce2be6e54517378/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f747363682f67726f7570666f72636861727473)](https://packagist.org/packages/tsch/groupforcharts)[![License](https://camo.githubusercontent.com/5f37564dfc071336d66ba80ce1c40b86069bb2de06be83f74711e9f52fcc3b7a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f747363682f67726f7570666f72636861727473)](https://packagist.org/packages/tsch/groupforcharts)

Introduction
------------

[](#introduction)

Group for charts generate an array sorted by months for the current year for your model.

Official Documentation
----------------------

[](#official-documentation)

### Installation

[](#installation)

```
composer require tsch/groupforcharts
```

Once the `tsch/groupforcharts` package has been installed, you can use it whenever your want.

### Examples

[](#examples)

#### Grouping by month

[](#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
-------

[](#license)

Group for charts is open-sourced software licensed under the [MIT license](LICENSE.md).

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity43

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

1525d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/ca40e120311a9cb4efc1a27bb1345f3341b7659d38fe0f82cd9beea3611898cd?d=identicon)[tomschiavi](/maintainers/tomschiavi)

---

Top Contributors

[![tomschiavi](https://avatars.githubusercontent.com/u/72853991?v=4)](https://github.com/tomschiavi "tomschiavi (9 commits)")

### Embed Badge

![Health badge](/badges/tsch-groupforcharts/health.svg)

```
[![Health](https://phpackages.com/badges/tsch-groupforcharts/health.svg)](https://phpackages.com/packages/tsch-groupforcharts)
```

###  Alternatives

[vemcogroup/laravel-sparkpost-driver

SparkPost driver to use with Laravel 6.x|7.x|8.x|9.x|10.x

421.7M1](/packages/vemcogroup-laravel-sparkpost-driver)[scriptdevelop/whatsapp-manager

Paquete para manejo de WhatsApp Business API en Laravel

762.6k](/packages/scriptdevelop-whatsapp-manager)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
