Giter Club home page Giter Club logo

koolreport / dashboard-demo Goto Github PK

View Code? Open in Web Editor NEW
46.0 9.0 21.0 583 KB

This is demonstration of Dashboard Framework which is an framework built with PHP and on top of KoolReport Pro to facilitate dashboard construction. It contains a sleek design of modern dashboard, strong data handling and myriad of types of data visualization.

Home Page: https://www.koolreport.com/dashboard/demo

PHP 99.06% Hack 0.94%
dashboard-framework php-dashboard koolreport-dashboard data-visualization kpi-dashboard php-framework php open-source php-admin php-admin-panel

dashboard-demo's Introduction

PHP Dashboard Framework

About

This repository contains sample dashboard application built on top of KoolReport's Dashboard Framework. The application act as demonstration of framework's features as well as examples for you to start with.

KoolReport's Dashboard

KoolReport's Dashboard is a PHP Dashboard Framework to facilitate dashboard construction. The framework is built on top of KoolReport Pro which is general data reporting framework. Dashboard framework is added with following features:

  1. Low-code orientation
  2. Built-in authentication
  3. Construct a beautiful admin panel
  4. Allow authorization from application to data field
  5. Work with MySQL, Postgres, SQL Server, SQLite
  6. Support data from CSV, Excel files
  7. Support Data Caching at widget level
  8. Support multi-languages
  9. Support Multi-themes
  10. Beautiful single page application
  11. Support lazy loading for widgets
  12. Flexible three levels organized menus
  13. Able to export to PDF, Excel, CSV and other formats
  14. Support master-detail data model
  15. Integrated with beautiful data visualization libraries: Google Chart, ChartJs, D3
  16. Work with other frameworks like Laravel, Codeigniter, Yii2, Symfony

Demonstration

You may view the result in here

Link: https://www.koolreport.com/dashboard/demo/

Documentation

Full documentation can be found at

https://www.koolreport.com/docs/dashboard/overview/

Installation

Step1: Clone our dashboard demo

To clone our dashboard demo, please run

git clone [email protected]:koolreport/dashboard-demo.git

Step 2: Add authentication

Please login into our website, navigating the My Licenses and click to [Get Token For Composer] button.

Near existed composer.json, please create auth.json and fill it with authentication information from Token For Composer pop up.

Step 3: Run composer to update

composer update

Note: Please make sure that you have subscription of KoolReport Pro and Dashboard Framework otherwise this command will not work.

Step 4: Install database (Optional)

Please locate the automaker.sql inside data folder and then import it to your databases.

Note: We provided a public database connection so you may run example immediately, but if you want to use local database, you take this step and the step 5

Step 5: Provide connection inside AutoMaker.php (Optional)

Please locate the AutoMaker.php and provide detail connection to your installed AutoMaker.

Note: If you take the step 4 then you should take this step, otherwise move to step 6

Step 6: Run

You may run the demo now

http://localhost/dashboard-demo/

Thank you!

<3 koolreport team

dashboard-demo's People

Contributors

dongnl avatar koolreport avatar tuananhnghiem avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

dashboard-demo's Issues

Your requirements could not be resolved to an installable set of packages.

As I report this issue, please keep in mind I'm fully aware this may be my lack of knowledge on how composer, php, packages, repo's and laravel works. I'm very new to this and still learning.

I downloaded the demo and also purchased the pro/dashboard package. I was able to get the demo working on my xampp by just dropping it into the htdocs folder and opening localhost. After my purchase, I extracted all the pro and dashboard files into the kool directory where the demo is.

I updated the composer.json file to add the repo and packages (pro, blade and dashboard), added the auth.json file using the license instructions and ran composer update.

I get this error:
Problem 1
- koolreport/excel 10.6.0 requires phpoffice/phpspreadsheet ^1 -> satisfiable by phpoffice/phpspreadsheet[1.0.0, ..., 1.28.0].
- koolreport/pro[6.0.3, ..., 6.0.6] require koolreport/core 6.0.1 -> satisfiable by koolreport/core[6.0.1] from composer repo (https://repo.packagist.org) but koolreport/core is the root package and cannot be modified. See https://getcomposer.org/dep-on-root for details and assistance.
- koolreport/pro[6.0.0, ..., 6.0.2] require koolreport/core 6.0.0 -> satisfiable by koolreport/core[6.0.0] from composer repo (https://repo.packagist.org) but koolreport/core is the root package and cannot be modified. See https://getcomposer.org/dep-on-root for details and assistance.
- koolreport/pro[5.9.0, ..., 5.9.1] require koolreport/core 5.5.0 -> satisfiable by koolreport/core[5.5.0] from composer repo (https://repo.packagist.org) but koolreport/core is the root package and cannot be modified. See https://getcomposer.org/dep-on-root for details and assistance.
- koolreport/pro[5.7.0, ..., 5.7.1] require koolreport/core 5.1.0 -> satisfiable by koolreport/core[5.1.0] from composer repo (https://repo.packagist.org) but koolreport/core is the root package and cannot be modified. See https://getcomposer.org/dep-on-root for details and assistance.
- koolreport/pro 5.16.2 requires koolreport/core 5.6.2 -> satisfiable by koolreport/core[5.6.2] from composer repo (https://repo.packagist.org) but koolreport/core is the root package and cannot be modified. See https://getcomposer.org/dep-on-root for details and assistance.
- koolreport/pro 5.16.1 requires koolreport/core 5.6.1 -> satisfiable by koolreport/core[5.6.1] from composer repo (https://repo.packagist.org) but koolreport/core is the root package and cannot be modified. See https://getcomposer.org/dep-on-root for details and assistance.
- koolreport/pro[5.10.0, ..., 5.16.0] require koolreport/core 5.6.0 -> satisfiable by koolreport/core[5.6.0] from composer repo (https://repo.packagist.org) but koolreport/core is the root package and cannot be modified. See https://getcomposer.org/dep-on-root for details and assistance.
- phpoffice/phpspreadsheet[1.0.0, ..., 1.8.2] require php ^5.6|^7.0 -> your php version (8.1.17) does not satisfy that requirement.
- koolreport/pro 5.0.4 requires koolreport/core 5.0.1 -> satisfiable by koolreport/core[5.0.1] from composer repo (https://repo.packagist.org) but koolreport/core is the root package and cannot be modified. See https://getcomposer.org/dep-on-root for details and assistance.
- koolreport/pro[5.0.0, ..., 5.0.3] require koolreport/core 5.0.0 -> satisfiable by koolreport/core[5.0.0] from composer repo (https://repo.packagist.org) but koolreport/core is the root package and cannot be modified. See https://getcomposer.org/dep-on-root for details and assistance.
- koolreport/pro 4.7.1 requires koolreport/core 4.7.1 -> satisfiable by koolreport/core[4.7.1] from composer repo (https://repo.packagist.org) but koolreport/core is the root package and cannot be modified. See https://getcomposer.org/dep-on-root for details and assistance.
- koolreport/pro 4.7.0 requires koolreport/core 4.7.0 -> satisfiable by koolreport/core[4.7.0] from composer repo (https://repo.packagist.org) but koolreport/core is the root package and cannot be modified. See https://getcomposer.org/dep-on-root for details and assistance.
- koolreport/pro 4.5.1 requires koolreport/core 4.5.1 -> satisfiable by koolreport/core[4.5.1] from composer repo (https://repo.packagist.org) but koolreport/core is the root package and cannot be modified. See https://getcomposer.org/dep-on-root for details and assistance.
- koolreport/pro 4.5.0 requires koolreport/core 4.5.0 -> satisfiable by koolreport/core[4.5.0] from composer repo (https://repo.packagist.org) but koolreport/core is the root package and cannot be modified. See https://getcomposer.org/dep-on-root for details and assistance.
- koolreport/pro[4.3.0, ..., 4.3.2] require koolreport/core 4.3.0 -> satisfiable by koolreport/core[4.3.0] from composer repo (https://repo.packagist.org) but koolreport/core is the root package and cannot be modified. See https://getcomposer.org/dep-on-root for details and assistance.
- koolreport/pro[4.0.0, ..., 4.1.2] require koolreport/core 4.0.0 -> satisfiable by koolreport/core[4.0.0] from composer repo (https://repo.packagist.org) but koolreport/core is the root package and cannot be modified. See https://getcomposer.org/dep-on-root for details and assistance.
- phpoffice/phpspreadsheet[1.9.0, ..., 1.12.0] require php ^7.1 -> your php version (8.1.17) does not satisfy that requirement.
- phpoffice/phpspreadsheet[1.13.0, ..., 1.14.1] require php ^7.2 -> your php version (8.1.17) does not satisfy that requirement.
- phpoffice/phpspreadsheet[1.15.0, ..., 1.17.1] require ext-gd * -> it is missing from your system. Install or enable PHP's gd extension.
- phpoffice/phpspreadsheet[1.18.0, ..., 1.28.0] require ext-fileinfo * -> it is missing from your system. Install or enable PHP's fileinfo extension.
- koolreport/pro 6.2.0 requires koolreport/excel 10.6.0 -> satisfiable by koolreport/excel[10.6.0].
- Root composer.json requires koolreport/pro * -> satisfiable by koolreport/pro[4.0.0, ..., 4.7.1, 5.0.0, ..., 5.16.2, 6.0.0, ..., 6.2.0].

To enable extensions, verify that they are enabled in your .ini files:
- C:\Users\danie\php81\php.ini
You can also run php --ini in a terminal to see which files are used by PHP in CLI mode.
Alternatively, you can run Composer with --ignore-platform-req=ext-gd --ignore-platform-req=ext-fileinfo to temporarily ignore these required extensions.

The requested package koolreport/pro could not be found in any version, there may be a typo in the package name

I am trying to use your Koolreport/pro package and after I register I got the autherization to login and get the composer info, it's seem like so as you mention on pup up composer

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

and the auth.json also look like so

{
  "http-basic": {
    "repo.koolreport.com": {
      "username": "[email protected]",
      "password": "12345678"
    }
  }
}

and when I run composer update
I get this

Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - The requested package koolreport/pro could not be found in any version, there may be a typo in the package name.
  Problem 2
    - The requested package koolreport/blade ^4.5 exists as koolreport/blade[1.0.0, dev-master, dev-ver1.0.0] but these are rejected by your constraint.
  Problem 3
    - The requested package koolreport/export could not be found in any version, there may be a typo in the package name.

Potential causes:
 - A typo in the package name
 - The package is not available in a stable-enough version according to your minimum-stability setting
   see <https://getcomposer.org/doc/04-schema.md#minimum-stability> for more details.
 - It's a private package and you forgot to add a custom repository to find it

Read <https://getcomposer.org/doc/articles/troubleshooting.md> for further common problems.

How could I make?

How could I use pivotTable Widget

I have installed koolreport/pivot, and use this inside widget function, it's say there is no create function, and when I was searching in your doc there is not clear enough for me.

class SaleBoard extends Dashboard
{
    protected function widgets()
    {
        return [
           SalePivotTable::create()           
       ];
  }
}
```

SalePivotTable.php
 
```
class SalePivotTable extends koolreport\KoolReport
{
    function setup()
    {
        $node = $this->src('transactions')
            ->query("SELECT group_type, invoice_no, invoice_date FROM transactions")
                ->pipe(new Pivot(array(
                "dimensions" => array(
                    "column" => "Monat",
                    "row" => "Group Type, Invoice No, Invoice Date"
                ),
                "aggregates" => array(
                    "sum" => "total_amount",
                )
            )))
            ->pipe($this->dataStore('transactions'));  
    }
}
```

Your requirements could not be resolved to an installable set of packages.

Problem 1
PS C:\wamp64\www\dashboard-demo> composer update
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

Problem 1
- Root composer.json requires koolreport/pro, it could not be found in any version, there may be a typo in the package name.
Problem 2
- Root composer.json requires koolreport/dashboard, it could not be found in any version, there may be a typo in the package name.

Potential causes:

Read https://getcomposer.org/doc/articles/troubleshooting.md for further common problems.
PS C:\wamp64\www\dashboard-demo>

i got this problem when i tried to write the composer update command

and when i open localhost/dashboard-demo/ it gives me this error :

Warning: require_once(vendor/autoload.php): Failed to open stream: No such file or directory in C:\wamp64\www\dashboard-demo\index.php on line 3 --

1 | 0.0002 | 363400 | {main}( ) | ...\index.php:0

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.