RowNumColumn

Introduction #

RowNumColumn is a process to add columns with ordered row numbers.

Example #

<?php
class MyReport extends \koolreport\KoolReport
{
    public function setup()
    {
        // Add one ordered row number column named "RowNumCol1", starting row number from 0 by default
        ->pipe(new RowNumColumn("RowNumCol1"))

        // Add two ordered row number columns named "RowNumCol2" and "RowNumCol3", starting row number from 1
        ->pipe(new RowNumColumn(array(
            "RowNumCol2", "RowNumCol3"
        ), 1))
    }
}

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.