Download the PHP package agoalofalife/reports without Composer
On this page you can find all versions of the php package agoalofalife/reports. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download agoalofalife/reports
More information about agoalofalife/reports
Files in agoalofalife/reports
Package reports
Short Description UI for created and download reports in Laravel
License MIT
Informations about the package reports
REPORTS
Requirements : PHP verison >= 7.1.0 Laravel version >= 5.5
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
Locale
In file config/app.php
select your language.
The package provides two languages:
- ru
- en
Blade and UI
In your template, you need to paste the code
Cron
You have to add cron, how separete process.
The development process
You create new file report:
Insert in config config/reports.php
:
Fill the class:
Property $disk
, name disk in filesystem.
Property $extension
, type extension your file.
Method getFilename
accordingly return name file.
Method getTitle
return name title in UI.
Method getDescription
return description in UI.
Method handler
is base method. Package use external package.
Method is a small wrapper.
Notification
Once the report is ready, you can send notification.
For this you need to implement interface agoalofalife\Reports\Contracts\NotificationReport
.
Method getNotifiable
return notifiable
, which has a method routeNotificationFor
.
And method getNotification
, return Notification
type.