PHPackages                             agoalofalife/reports - 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. [Mail &amp; Notifications](/categories/mail)
4. /
5. agoalofalife/reports

ActiveLibrary[Mail &amp; Notifications](/categories/mail)

agoalofalife/reports
====================

UI for created and download reports in Laravel

v0.3.0(7y ago)161.7k↓66.7%1[1 issues](https://github.com/agoalofalife/reports/issues)MITPHPPHP &gt;=7.1.0

Since Mar 12Pushed 7y ago1 watchersCompare

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

READMEChangelog (5)Dependencies (5)Versions (6)Used By (0)

REPORTS
=======

[](#reports)

 [![](https://camo.githubusercontent.com/1da54d22d5902913d07e9668637e72b1ed88c6d7ad57b6c6df6c29c8c383be0c/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f61676f616c6f66616c6966652f7265706f7274732f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/agoalofalife/reports/?branch=master) [![](https://camo.githubusercontent.com/dc11475fd4df46266576cefd3f4c0d408ac46751698ff6933668805d0fea4fc0/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f61676f616c6f66616c6966652f7265706f7274732f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/agoalofalife/reports/?branch=master) [![](https://camo.githubusercontent.com/a4a9d3b43b9122276dcc257698dbfc52018bc6b0ba89fb3efe6205013988fcf7/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f61676f616c6f66616c6966652f7265706f7274732f6261646765732f6275696c642e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/agoalofalife/reports/?branch=master)

[![](/docs/images/base.jpg)](/docs/images/base.jpg)

> Requirements : PHP verison &gt;= 7.1.0 Laravel version &gt;= 5.5

```
not support Laravel version 5.8 & >

```

### What is it?

[](#what-is-it)

This is package offers ready UI and some code, for reports.

Reports will be with extensions: `pdf, xlxs, xls, csv` .

In the paradigm Laravel, we make reprots and write code. It's just!

### Install

[](#install)

```
composer require agoalofalife/reports
```

```
php artisan reports:install
```

### Locale

[](#locale)

In file `config/app.php` select your language.

The package provides two languages:

- ru
- en

### Blade and UI

[](#blade-and-ui)

In your template, you need to paste the code

```

    @include('reports::app')
    ...
```

### Cron

[](#cron)

You have to add cron, how separete process.

```
// App\Console\Kernel
use agoalofalife\Reports\Console\ParseReportsCommand;

  $schedule->command(ParseReportsCommand::class)->everyMinute();
```

### The development process

[](#the-development-process)

You create new file report:

```
php artisan make:report NameReport
```

Insert in config `config/reports.php` :

```
  'reports' => [
          \App\Reports\TestReport::class
    ],
```

Fill the class:

```
