July 4, 2023
As a budding developer, you may find yourself grappling with the intricacies of visualizing data from databases like MySQL in captivating charts and graphs. Fear not, for I am here to guide you through the process with the help of KoolReport—a powerful PHP framework that will revolutionize your data visualization journey and simplify your development workflow.
- AnyChart: Connecting MySQL Database to JS Chart Using PHP
- FusionChart: Create Interactive Charts using PHP and MySQL Database
- Learning Programming: Google Chart with PHP and MySQL
But behold! KoolReport is about to unveil a new world of data visualization simplicity. Developed with a laser focus on data reporting, this framework will enable you to effortlessly create visually stunning charts directly from your database, eliminating the need for tedious and error-prone transformation processes. Allow me to guide you through an example that showcases the elegance and power of KoolReport.
Imagine you wish to create a column chart to visualize the spending amount of each customer in your MySQL database. With KoolReport, accomplishing this becomes a breeze. Let's dive into the code:
// Database connection information
$connection = array(
"connectionString" => "mysql:host=localhost;dbname=sales",
"username" => "root",
"password" => "",
"charset" => "utf8"
// Create a column chart to visualize the spending amount of each customer.
"dataSource" => (new PdoDataSource($connection))->query("
SELECT customerName, SUM(amount) as total
GROUP BY customerName
Impressive, isn't it? With just a few lines of code, you establish a connection to your MySQL database, retrieve the desired data, and generate a beautiful column chart displaying the spending amount for each customer. The simplicity and efficiency of KoolReport allow you to focus on the bigger picture rather than being tangled in cumbersome technicalities.
Moreover, KoolReport offers a diverse range of chart types to cater to your specific needs. From fundamental line charts and bar charts to intricate pie charts, area charts, geo charts, gauge charts, histograms, and combo charts, you have the freedom to unleash the full potential of your data.
What truly sets KoolReport apart is its seamless integration with multiple charting libraries. Whether you prefer Google Charts, ChartJS, Morris Chart, or D3, KoolReport has you covered. Thanks to its common API, transitioning between charting libraries is effortless. By merely changing the chart class, you can explore different visualization options without wasting precious time rewriting your entire transformation process.
In summary, as an aspiring developer, you now possess a powerful tool—KoolReport—to simplify your data visualization endeavors. This framework empowers you to streamline your development process, save invaluable time, and focus on creating impactful data visualizations. Say goodbye to convoluted data transformations and embrace a world where charting becomes an intuitive and seamless experience. With KoolReport by your side, you can elevate your data visualization skills and unlock a realm of possibilities.
April 7, 2023
We are thrilled to announce a major release of KoolReport products with significant improvements. Upgrade is highly recommended.
Compatibility with PHP 8.2
Dynamic properties have been deprecated in PHP 8.2 causing issues for KoolReport and its packages. We have completely solved the issues with dynamic properties in this release, enabling you to upgrade to the latest PHP confidently.
KoolReport Core 6.1.0
Improvements have been made to Table, Google Chart and the ability to store the view folder in a separate folder. The view file of a report no longer needs to be in the same folder as the report’s class file.
Exporting capabilities have been greatly enhanced with the addition of a general
engine() method. This method enables you to specify a list of exporting engines that you need and choose which engine to use during the exporting process. Excel exporting has also been improved, allowing developers to customize the view of the excel file instead of using the default view from the previous version.
- Datagrid 7.8.0: Ability to load custom css file
- Excel 10.6.0: Excellent improvement for MacOS Number compatibility and ability to rearrange widgets automatically in Excel files
- Export 5.3.0: Improve the flexibility of export view by adding viewMap property.
- VisualQuery 2.1.0: Fix the grouping when multiple fields are used
- Amazing 2.1.4: Fix FormDropDown and DonutChart in Dashboard
- AppStack 1.1.5: Fix FormDropDown and DonutChart
- Bootstrap4 1.5.1: Upgrade to 4.5
- ChartJS 3.2.1: Minor fix
- ChartTable 1.3.1: Minor fix
- Cleandata 1.6.1 :Minor fix
- CloudExport 4.2.0: Upgrade php client library
- Cube 3.5.1: Minor fix
- Inputs 6.5.1: Minor fix
- MorrisChart 3.0.1: Minor fix
We hope that you enjoy the new releases.
<3 koolreport team
February 25, 2023
You might wondering What are the differences between Dashboard and Admin Panel? What should you choose for your project?
As businesses grow, so does the amount of data they generate. It becomes increasingly important to collect, organize and analyze this data to make informed decisions. This is where dashboards and admin panels come in.
Both dashboards and admin panels are tools used to manage and analyze data, but they serve different purposes. An admin panel is typically used by an organization's internal team to manage the backend of a website or application. It provides access to the data and tools necessary to manage the functionality and content of the site.
On the other hand, a dashboard is a user interface that provides an overview of important metrics and key performance indicators (KPIs) for a business. It is designed to help stakeholders make quick, informed decisions based on real-time data.
While these two tools may seem similar, they serve distinct purposes. An admin panel is focused on managing and updating a website or application, while a dashboard is focused on presenting data and insights.
However, what if you could have a tool that combines both the functionality of an admin panel and a dashboard? That's where the Dashboard Framework of KoolReport comes in.
Built on top of the powerful KoolReport Pro, the Dashboard Framework is a set of ready-made features designed to make it easy for developers to create online dashboard applications or admin panels for websites. With just a few lines of code, developers can create a modern, single-page dashboard that includes built-in authentication, authorization, and support for multiple databases and data sources, including CSV and Excel files.
In addition, the Dashboard Framework includes support for multi-languages and multi-themes, making it easy to create custom dashboards that fit your brand and language preferences. And with widget lazy loading support, developers can ensure that the dashboard is fast and responsive, even when working with large datasets.
The Dashboard Framework is also flexible and can work within other popular PHP frameworks, including Laravel, CodeIgniter, Yii2, and Symfony. This makes it easy to integrate the Dashboard Framework into your existing workflow and start building great dashboard systems for your clients or your own business.
View Dashboard Framework Demo
In conclusion, while dashboards and admin panels serve distinct purposes, the Dashboard Framework of KoolReport makes it easy to create a tool that covers both functionalities. With its powerful features and flexible integration options, the Dashboard Framework is a valuable tool for any developer looking to build a modern, data-driven application.
December 25, 2021
Reporting section is always a part of any system, sometimes it plays a crucial part. We have learnt this through hundreds of projects we did for our customers. So what is KoolReport and why you should consider having it in your great php application.
What is KoolReport?
By definition, KoolReport is an intuitive and flexible open-source PHP Reporting Framework for faster and easier data report delivery. Just like any php framework like Laravel or CodeIgniter, KoolReport provides developers a frame to code, a list of ready-made functionalities to build things. While other frameworks focus on constructing web applications, KoolReport only focuses on one thing: using PHP to construct great data reports.
Koolreport was born from the fact that data reports appear very often in almost all web applications. It is understandable because we always need to know the status of applications such as number of visitors, number of registered users or number of item sales and so on. We have built several hundred applications for our customers and 90% have report sections. In some of them, the report section is actually the main part. This is the biggest motivation for us to construct KoolReport in the first place.
There are 5 reasons that you would like to have KoolReport in your projects:
Easy to install and easy to use. You can install KoolReport by either downloading a copy and putting it inside your application or by using composer with a single command line. The structure of a report is very simple, one php class for report’s definition and one view file for report’s visualization. That’s why you can start using KoolReport in almost no-time.
KoolReport only does one thing and only one thing: building a good data report. Nothing more. You will not see routing, authentication or whatsoever. Is it bad? It depends on each opinion but for us, doing one thing best is better. “Make a good report” is not a simple task in fact. It includes 3 things.
First is the ability to connect to various sources and bring in data in one place. A report could be combined results from different data sources, a little from MySQL, some in Postgresql and other from CSV.
Second is the power of data processing. Data is gathered but how to fastly combine and transform them into meaningful information is the question. KoolReport contains over 30 built-in data processes which you can use with your data.
Last is data visualization capability. We have all meaningful data but without a good representation, the story could not be told. KoolReport is integrated with rich charts and graphs that come from well known libraries such as Google Chart, D3 or ChartJs for you to convey your data in the most impressive and interactive way.
Work with different environments
KoolReport can be integrated into Laravel or CodeIgniter or any MVC frameworks out and utilize their functionalities not existing in KoolReport. So KoolReport wants to be part of ecosystems, does one good thing and corporate with others, all heading to a final purpose: A great application.
Inherit experience of data report maker
Our deep experience of making data reports has been put into KoolReport. Moreover, the comments, recommendations and error report from users helps us to perfect KoolReport through many years. So using KoolReport, you are using a proven framework made by experts and growing from real use cases.
Free and open-source
Cost is always a part of the decision as always. KoolReport is released as a free and open-source library under MIT license which virtually gives you full right to use, to access and modify source-code as your own need.
So above are the top 5 reasons that you should use KoolReport inside your project. Of course, any solution has drawbacks and KoolReport will not be an exception. The reasons we give could be biased and the best way is your own experience with the framework.
November 17, 2021
We are very happy to inform that the Q4-2021 releases have been available. In this releases, we have a new core KoolReport together with 12 new package updates. We will go through each packages' update and note that the biggest change will be at the end.
KoolReport core 5.5.0 has been releases with ability to use PDODataSource to update/delete data with
execute() method. This extent comes from the demand of not just fetching data but also updating database. We added new process called
Forward which basically act as a forwarder to branch data with conditions. There also a small update to Google Chart in which the chart can accept more than one annotation text. The last update comes from Table in which we make the
removeDuplicate property work with both column names and column orders.
In Chartjs 3.0.0 we introduce Timeline chart which is very useful for representing multiple events' time range. Another big update is multiple axes support. Now users can add multiple Y value axes for multiple data series.
With Charttable 1.2.0 we fix a common bug with "columns" property to make Charttable behave similarly to Table or DataTables widget.
In CloudExport 4.0.0, we update the underlying chromeheadlessio/php-client package to prepare support for a near future release of a local cloud export server running in Docker.
Popular DataTables's version 7.0.0 has a new property called
groupCellsInColumns) which groups/merges verticaly adjacent cells with the same value. It is somewhat similar to row group but has a different visual format which many users like. Many client side functions for expanding/collapsing/toggling row groups, row details are implemented as well. Option for setting a custom ajax url when using server side processing is added as
A new excel widget,
Pivotmatrix, is added in Excel 9.0.0 besides various fixes.
PivotMatrix is nearly similar to
PivotTable except for a slightly different and improved excel layout.
Export 5.1.0 introduces a
serverLocalAddress option in case a report server can not access its report resources (js/css/images/fonts/etc) via its domain name and must use a local address like "localhost" or "127.0.0.1".
In Morris chart 3.0.0, we present strong customization server-side options for hover and format templates.
Pivot 8.1.0 brings solid fixes like aggregates' auto meta data, a property name typo (impressively, we know) to an already full-featured package.
DateTimePicker have been fixed a big bug related to calculating this month timeframe. The CheckBoxList and RadioList also are improved with changing bootstrap.
QueryBuilder is working just great, only received a small bug fix in generating delete query which happens in very rare case. Thanks to our beloved customer Michael to spot this issue.
Stepping from version 2.0.0 to 3.0.0, Dashboard has been put under a huge operation with many improvements and bug fixes. There were about 50 changes recorded in our changelog for version 3.0.0.
The biggest feature in Dashboard is the Admin Panel. With this feature, you can construct a beautiful admin panel to administer your data, your application operation or even your business. Writing only few lines of code, you can implement a full CRUD system to admin your resources. But it does not stop there, CRUD is just a basic feature of it. Admin Panel is very flexible that allows you to define your own list of glasses to view your data in different angles, to construct your own data filtering and to build your own actions on each piece of your data. Building on top of powerful KoolReport Pro and Dashboard Framework, Admin Panel is the best of both worlds: A powerful admin panel and an advanced KPI dashboard system. And not to forget, Admin Panel is developed as a part of Dashboard Framework so if you have Dashboard Framework license, you have Admin Panel features available NOW.
View Dashboard & AdminPanel's Demo
In this new version, we have provided the Excel and CSV exporting capability as our promise to you from the last version.
It is hard to list all changes here, for details you can have a look at our Dashboard's changelog.
Although we incorporated many new features into Dashboard Framework, we maintained a solid backward compatibility so you feel free to upgrade to new Dashboard 3.0.0.
Our road map
Despite of the Covid-19 epidemic crisis, our team have successfully managed our constant releases to make sure that bugs are fixed, new features are available, support requests are solved. Our next plans & products for 2022 will be:
- Continue improving KoolReport and its packages
- Perfect the Dashboard Framework: new capabilities, new themes .etc
- Construct Dashboard Builder, a drag and drop GUI to construct dashboard & admin panel.
- Dockerize our Chromeheadlessio service to provide on-premise PDF generator solution.
- Provide off-the-shelf OLAP solution.
Thank you very much!
<3 koolreport team