### Start PhantomJS Server Source: https://github.com/koolphp/koolreport/blob/master/tests/README.md Initiates the PhantomJS browser automation server, typically on port 4444. ```bash vendor/bin/phantomjs ``` -------------------------------- ### Install KoolReport using Composer Source: https://github.com/koolphp/koolreport/blob/master/README.md Use this command to install the latest KoolReport version via Composer. This is the recommended installation method. ```bash composer require koolreport/core ``` -------------------------------- ### Install KoolReport using Composer (Legacy) Source: https://github.com/koolphp/koolreport/blob/master/README.md This command installs the legacy version of KoolReport. It is recommended to use the 'koolreport/core' package instead. ```bash $ composer require koolphp/koolreport ``` -------------------------------- ### KoolReport Project Structure Source: https://github.com/koolphp/koolreport/blob/master/README.md This illustrates the typical directory structure of a KoolReport project after installation. ```text koolreport/ ├── packages/ ├── src/ │ ├── clients/ │ ├── core/ │ ├── datasources/ │ ├── processes/ │ └── widgets/ ├── tests/ └── autoload.php ``` -------------------------------- ### Run All Acceptance Tests Source: https://github.com/koolphp/koolreport/blob/master/tests/README.md Initiates the execution of all acceptance tests defined in the project. ```bash vendor/bin/codecept run acceptance ``` -------------------------------- ### Bootstrap File for a KoolReport Report Source: https://github.com/koolphp/koolreport/blob/master/README.md The index.php file acts as the entry point for your report. It requires the report class, instantiates it, runs the report, and renders the output. ```php run()->render(); ``` -------------------------------- ### Run All Unit Tests Source: https://github.com/koolphp/koolreport/blob/master/tests/README.md Execute all defined unit tests. ```bash vendor/bin/codecept run unit ``` -------------------------------- ### SalesByCustomer.view.php - Table Visualization Source: https://github.com/koolphp/koolreport/blob/master/README.md Renders the 'sales_by_customer' data store as an HTML table. Configures column labels and currency prefixes for sales amounts, and applies a hover and bordered CSS class to the table. ```php $this->dataStore('sales_by_customer'), "columns"=>array( "customerName"=>array( "label"=>"Customer" ), "dollar_sales"=>array( "type"=>"number", "label"=>"Amount", "prefix"=>"$", ) ), "cssClass"=>array( "table"=>"table table-hover table-bordered" ) )); ?> ``` -------------------------------- ### Generate Acceptance Test Source: https://github.com/koolphp/koolreport/blob/master/tests/README.md Command to create a new acceptance test suite. ```bash vendor/bin/codecept generate:cest amazing\Theme ``` -------------------------------- ### Run Specific Acceptance Test Source: https://github.com/koolphp/koolreport/blob/master/tests/README.md Execute a particular acceptance test suite. ```bash vendor/bin/codecept run acceptance amazing\ThemeCest ``` -------------------------------- ### SalesByCustomer.view.php - Bar Chart Visualization Source: https://github.com/koolphp/koolreport/blob/master/README.md Renders the 'sales_by_customer' data store as a Google Bar Chart. Configures chart dimensions, column labels, data types, currency prefixes, and emphasis for sales amounts. ```php
This report shows top 10 sales by customer