PHPackages                             koolreport/instant - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. koolreport/instant

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

koolreport/instant
==================

Allow rendering widget instantly

3.7.0(5y ago)3174.2k↓40.8%MITPHP

Since May 8Pushed 5y ago2 watchersCompare

[ Source](https://github.com/koolreport/instant)[ Packagist](https://packagist.org/packages/koolreport/instant)[ Docs](https://www.koolreport.com)[ RSS](/packages/koolreport-instant/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (8)DependenciesVersions (18)Used By (0)

Introduction
============

[](#introduction)

Sometimes, we need to show some tables or charts in our page but setting up the whole KoolReport, despite of ease, causes trouble and is not convenient. The `Instant` package allows us to create report or widget instantly everywhere without setting up a full report.

Beside `Instant` package can help you to export any file whether it is `html` or `php` to PDF and other formats.

Installation
============

[](#installation)

1. Download and unzip the zipped file
2. Copy `instant` folder into `koolreport\instant` folder

Documentation
=============

[](#documentation)

Widget
------

[](#widget)

namereturndescriptioncreate(*string* $widgetClassName, *array* $widgetParams)nullRender the widget. This static function requires `$widgetClassName` which is the name of widget you want to create and `$widgetParams` which is any parameters you want to pass to the widgetExamples
--------

[](#examples)

### Create KoolPHP Table

[](#create-koolphp-table)

Below are example of how to create Table on your PHP page

```

        Instant Table

```

As you see, you do not need to setup the whole KoolReport class and the view in order to use our `Widget`. With the `Instance` package, you can create any widgets you want.

### Create Google BarChart

[](#create-google-barchart)

```

        Instant Table

```

### Create PieChart

[](#create-piechart)

```

        Instant Table

```

Assets Folder
-------------

[](#assets-folder)

### Automatically create assets folder

[](#automatically-create-assets-folder)

By default, Instant package will create `koolreport_assets` folder automatically to hold the resources of widgets. This will assure that all widgets work seamlessly.

### Manually create assets folder

[](#manually-create-assets-folder)

If you want to organize all koolreport widget's resources into a pre-created assets folder of your own, you may do so. For example, you have `assets` folder created, you can do like below:

```

```

The third parameter of `create` function is optional settings for assets folder. This `assets` settings is necessary if browser can not access to the folder containing resources of Widget. By specifying the `path` and `url`, we let KoolReport know where to put Widget's resources and how to access those resources.

### Turn off this feature

[](#turn-off-this-feature)

If you put KoolReport library in folder that can be accessed by browser, there will not be need for create `assets` folder. So you may tell instant package not to create any `assets` folder. Just input `false` value into the third parameter like below

```

```

Exporter
--------

[](#exporter)

`Exporter` helps you to ulilize the `Export` package (if you have) to export any HTML or PHP code file to PDF and other formats.

```

        Test

        Testing

```

As you may see from above example, we only have 1 file `index.php` containing controller classes `MyReport` and the view inside the `start()` and `end()` methods of report. We declare `use \koolreport\instant\SinglePage;` inside `MyReport` to provide two important methods above.

Support
-------

[](#support)

Please use our forum if you need support, by this way other people can benefit as well. If the support request need privacy, you may send email to us at ****.

###  Health Score

38

—

LowBetter than 83% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity36

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity68

Established project with proven stability

 Bus Factor1

Top contributor holds 71.4% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~79 days

Recently: every ~133 days

Total

8

Last Release

2037d ago

Major Versions

1.5.0 → 2.0.02019-05-28

2.5.0 → 3.0.02019-05-28

### Community

Maintainers

![](https://www.gravatar.com/avatar/9a27c60d0b76ca63f2216334e1e7668bff2b75ef9ffcc601855d738f29e17dab?d=identicon)[koolreport](/maintainers/koolreport)

---

Top Contributors

[![dongnl](https://avatars.githubusercontent.com/u/5791383?v=4)](https://github.com/dongnl "dongnl (5 commits)")[![tuananhnghiem](https://avatars.githubusercontent.com/u/7497712?v=4)](https://github.com/tuananhnghiem "tuananhnghiem (2 commits)")

---

Tags

data-visualizationkoolreportreporting-enginereporting-toolphpData ReportReporting ToolsInstant Report

### Embed Badge

![Health badge](/badges/koolreport-instant/health.svg)

```
[![Health](https://phpackages.com/badges/koolreport-instant/health.svg)](https://phpackages.com/packages/koolreport-instant)
```

###  Alternatives

[koolreport/laravel

Allow to use KoolReport seamlessly in Laravel

18267.8k](/packages/koolreport-laravel)[imanghafoori/laravel-anypass

A minimal yet powerful package to help you in development.

21422.6k](/packages/imanghafoori-laravel-anypass)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
