Download the PHP package aldeebhasan/fast-bi without Composer
On this page you can find all versions of the php package aldeebhasan/fast-bi. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download aldeebhasan/fast-bi
More information about aldeebhasan/fast-bi
Files in aldeebhasan/fast-bi
Package fast-bi
Short Description This package will help you to add a fully customized widgets to your project
License MIT
Informations about the package fast-bi
Fast-Bi
Fast-Bi is a light weight Business Intelligence dashboard manager for all php projects.
Installation
Install Fast-Bi using composer:
composer require aldeebhasan/fast-bi
Requirements
Fast-Bi require php 8.0 or later versions. it can work on any platform that use php like laravel,codeigniter,symphony and so on.
Main features and concepts
Fast-Bi enable you to add different kind of widgets to your dashboard. The main component is Widget
, which can
use Dimension
, Metric
, or Raw arrays to fully customize the desired widget.
Dimensions
Dimension
is a data container that can take any array as input, do some transformation and preparation over it in
order to obtain the desired data. The Dimension
can be considered as an axis for the charts, column for the table with
predefined functionalities.
Kind of Dimensions:
- dateTime : transform the input to datetime format
- string : transform the input to strings
- number : transform the input to float format
- raw : transform the input to custom format
How to define a new dimension:
The dateTime
dimension accept a format($format)
function to format the resulted data.
example:
To build your custom dimension you can use the raw
dimension as follow:
Transformer will be applied over each item of the input array
Metrics
Metric
is a data container that can take any array as input and do some operation over it in order to obtain the
desired metric. The Metric
can mainly be used to show some statistics.
Kind of Metrics:
- sum : get the sum of the input data
- max : get the maximum value of the input data
- min : get the minimum value of the input data
- median : get the median value of the input data
- avg : get the average value of the input data
- raw : get custom value of the input data
How to define a new metric:
To build your custom metric you can use the raw
metric as follow:
Transformer will be applied over each item of the input array
Widgets
The most important component of this package is the Widgets
. Many type of widgets are predefined for you.
Each Widget
has three main parts:
- labels : to customize the column name for table or the axis names, ..etc
- dimensions : to define the data you want to show or plot
- metrics : to show some statistics at the bottom of each widget
Table Widgets
Default | With metrics |
---|---|
Bar Chart Widgets
Vertical(default) | Horizontal |
---|---|
Line Chart Widgets
Default | With metrics |
---|---|
Pie Chart Widgets
Single Dimension | Multi Dimensions |
---|---|
Doughnut Chart Widgets
Single Dimension | Multi Dimensions |
---|---|
Scatter Chart Widgets
& Bubble Chart Widgets
These two chart are very similar to each other. The main difference is that the bubble chart will have a different radius for each data point.
The default behaviour of these two charts is to make the first dimension is the base dimension which will be combined with all the other dimensions.
In the following example pos-invoices
will be combined with store-invoices
and then with extra
accordingly
If the labels are not defined, the package will combine the dimensions names to make a suitable naming for each dataset.
Scatter chart | Bubble chart |
---|---|
Polar Area Chart Widgets
Single Dimension | Multi Dimensions |
---|---|
Radar Chart Widgets
Single Dimension | Multi Dimensions |
---|---|
Number Widgets
This widget is used to represent some statistic related to your dashboard.
Single | Multi |
---|---|
ProgressBar Widgets
This widget is used to represent some statistic related to your dashboard. For this widget, you should specify numbers in term of percentage (max is 100 and min 0)
Single | Multi |
---|---|
Geo Map Widgets
For this widget you need to specify the countries you want to show the statistics on. You can define the country using the iso2 code.
Default | Customized |
---|---|
License
Fast-Bi package is licensed under The MIT License (MIT).
Security contact information
To report a security vulnerability, contact directly to the developer contact email Here.
All versions of fast-bi with dependencies
ext-json Version *