ApexCharts

Introduction #

ApexCharts package contains server-side PHP classes the super popular client-side chart library ApexCharts, which can be used totally offline.

Installation #

By downloading .zip file #

  1. Download zip file from My Licenses
  2. Unzip
  3. Copy the folder apexcharts into koolreport folder, it will look like below:
koolreport
├── core
├── apexcharts

By composer #

If you have purchased the package then you can follow these steps to install

  1. Login to koolreport.com
  2. Go to My Licenses
  3. Click Get Token For Composer button
  4. Copy the text and save to file auth.json next to composer.json
  5. Add the repositories to composer.json like below
  6. Run composer update to install package

composer.json

{
    "repositories":[
        {"type":"composer","url":"https://repo.koolreport.com"}
    ],
    "require":{
        "koolreport/apexcharts":"*",
        ...
    }
}

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.

Namespace #

All the charts of package are under the namespace \koolreport\apexcharts. You can directly use the class like this to create chart:

\koolreport\apexcharts\LineChart::create(array(
    ...
));

or you can use use statement on top of page to declare the library before use

<?php
    use \koolreport\apexcharts\LineChart;
?>

...
<?php
LineChart::create(array(
    ...
));
?>

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.