Cube
Overview #
The Cube
package helps to process your data into cross-tab table. For example, we have this data.
Country | Product | Sale |
---|---|---|
U.S | iPhone | 48,000 |
Canada | Samsung | 36,000 |
U.S | Samsung | 44,000 |
Canada | iPhone | 12,000 |
The Cube process can turn above table data into this summarized table:
Country | iPhone | Samsung | Total |
---|---|---|---|
U.S | 48,000 | 44,000 | 92,000 |
Canada | 12,000 | 36,000 | 48,000 |
The summarized data can then be used to draw charts and graphs.
Installation #
By downloading .zip file #
- Download zip file from My Licenses
- Unzip
- Copy the folder
cube
intokoolreport
folder, it will look like below:
koolreport
├── core
├── cube
By composer #
If you have purchased the package then you can follow these steps to install
- Login to koolreport.com
- Go to My Licenses
- Click Get Token For Composer button
- Copy the text and save to file
auth.json
next tocomposer.json
- Add the repositories to
composer.json
like below - Run
composer update
to install package
composer.json
{
"repositories":[
{"type":"composer","url":"https://repo.koolreport.com"}
],
"require":{
"koolreport/cube":"*",
...
}
}
Your auth.json
will look like this:
{
"http-basic": {
"repo.koolreport.com": {
"username": "your@email.com",
"password": "your-secret-token"
}
}
}
Note: Please add your auth.json
to .gitignore
as it contains your secret login information.
Get started with KoolReport
KoolReport will help you to construct good php data report by gathering your data from multiple sources, transforming them into valuable insights, and finally visualizing them in stunning charts and graphs.