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

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

koolreport/laravel
==================

Allow to use KoolReport seamlessly in Laravel

2.1.0(1y ago)18247.4k—9.2%3MITPHP

Since May 8Pushed 1y ago1 watchersCompare

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

READMEChangelog (6)DependenciesVersions (14)Used By (0)

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

[](#introduction)

Without doubt, [Laravel](https://laravel.com) is the most favorite PHP Framework in the world. It is easy to learn, fast and powerful with full capability for any web application.

Since we created KoolReport we received many questions like "*How to use KoolReport in Laravel?*". The answer is KoolReport was designed to work with any PHP Frameworks and Laravel is one of them. The setting to make them work together is simple but we want to make things simpler.

**Laravel package** is an add-on extension to make KoolReport work seamlessly in Laravel Framework environment. By adding package, report created with KoolReport will recorgnize Laravel databases automatically. Furthermore, KoolReport's widgets will be configured assets path and url so that all are working without requiring any further set-up effort from you. All with a simple line of code:

```
use \koolreport\laravel\Friendship;

```

While Laravel is PHP Framework for general purpose, KoolReport only **focus on reporting, data processing, charts and graphs**. KoolReport will power Laravel report capability to the max. For fun comparison, Laravel with KoolReport is like *Thanos with Mind Stone* and this package is like the glove to connect them. Laravel is a **powerful framework** and KoolReport will make it **better**.

Requirement
===========

[](#requirement)

1. KoolReport &gt;= 2.75.0
2. Laravel &gt;= 4.2

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

[](#installation)

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

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

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

```
koolreport
├── core
├── laravel
```

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

[](#by-composer)

```
composer require koolreport/laravel

```

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 Laravel's `app` folder
2. Inside Reports folder, create two files `MyReport.php` and `MyReport.view.php`
3. Adding `use \koolreport\laravel\Friendship` to your report like following

`MyReport.php`

```
