Download the PHP package zaimealabs/aggregate without Composer
On this page you can find all versions of the php package zaimealabs/aggregate. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download zaimealabs/aggregate
More information about zaimealabs/aggregate
Files in zaimealabs/aggregate
Download zaimealabs/aggregate
More information about zaimealabs/aggregate
Files in zaimealabs/aggregate
Vendor zaimealabs
Package aggregate
Short Description The ZaimeaLabs Aggregate package.
License MIT
Homepage https://zaimea.com
Package aggregate
Short Description The ZaimeaLabs Aggregate package.
License MIT
Homepage https://zaimea.com
Please rate this library. Is it a good library?
Informations about the package aggregate
Generate aggregate for your models to generate charts or reports in your application.
Hey 👋 thanks for considering making a donation, with these donations I can continue working to contribute to ZaimeaLabs projects.
[](https://www.paypal.com/donate/?hosted_button_id=V6YPST5PUAUKS)
## Usage
To generate a aggregate for your model, import the `ZaimeaLabs\Aggregate\Aggregate` class and pass along a model or query.
`::model()` come as it is.
`::query()` allow you to use additional filter like `where()`.
## Date Column
If your column is not `created_at` just use `dateColumn('pointed_date_column')`
### Aggregates
***You can use the following aggregates:***
Function | Parameter
-------------------- | -------------
`->average()` | `'column'`
`->count()` | `'*'`
`->cumulative()` | `'column'` MySql Only
`->cumulativeTime()` | `'column'` MySql Only
`->max()` | `'column'`
`->min()` | `'column'`
`->sum()` | `'column'`
`->sumTime()` | `'column'`
### Intervals
***You can use the following aggregates intervals:***
Function | Description
--------------- | -------------
`->perMinute()` | `set interval per minute`
`->perHour()` | `set interval per hour`
`->perDay()` | `set interval per day`
`->perMonth()` | `set interval per month`
`->perYear()` | `set interval per year`All versions of aggregate with dependencies
PHP Build Version
Package Version
The package zaimealabs/aggregate contains the following files
Loading the files please wait ....