PHPackages                             koolreport/yii2 - 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/yii2

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

koolreport/yii2
===============

Ease report setup within Yii2 environment

1.0.0(6y ago)1171.0k↓37.4%MITPHP

Since Jan 17Pushed 6y ago2 watchersCompare

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

READMEChangelog (1)DependenciesVersions (3)Used By (0)

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

[](#introduction)

`koolreport/yii2` package helps to ease the KoolReport report created within Yii2 environment. It can help to automatically configure `assets` path and url. Furthermore, it provide `default` datasource configured with Yii2 database connection.

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

[](#installation)

By downloading .zip file
------------------------

[](#by-downloading-zip-file)

1. [Download](https://www.koolreport.com/packages/yii2)
2. Unzip the zip file
3. Copy the folder `yii2` into `koolreport` folder so that look like below

```
koolreport
├── core
├── yii2
```

By composer
-----------

[](#by-composer)

```
composer require koolreport/yii2

```

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

[](#documentation)

Step-by-step tutorial
---------------------

[](#step-by-step-tutorial)

#### Step 1: Create report and claim friendship with Laravel

[](#step-1-create-report-and-claim-friendship-with-laravel)

1. First, you create folder `reports` inside root folder
2. Inside reports folder, create two files `MyReport.php` and `MyReport.view.php`
3. Adding `use \koolreport\yii2\Friendship` to your report like following

`MyReport.php`

```

    My Report

        It works

```

#### Step 2: Run report and display report

[](#step-2-run-report-and-display-report)

Now you have MyReport ready, in order to get report display inside Yii2, you will create MyReport's object in controller and pass that object to the view to render.

`HomeController.php`

```

```

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

34

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity35

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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

Unknown

Total

1

Last Release

2335d ago

### Community

Maintainers

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

---

Top Contributors

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

---

Tags

phpyii2PHP Reporting Frameworkphp reprting toolsyii reporting

### Embed Badge

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

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

PHPackages © 2026

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