All Projects → agoalofalife → reports

agoalofalife / reports

Licence: MIT License
UI for created and download reports in Laravel

Programming Languages

PHP
23972 projects - #3 most used programming language
Vue
7211 projects
javascript
184084 projects - #8 most used programming language
HTML
75241 projects

Projects that are alternatives of or similar to reports

pyreports
pyreports is a python library that allows you to create complex report from various sources
Stars: ✭ 78 (+500%)
Mutual labels:  reports, report
Jasperreports
JasperReports® - Free Java Reporting Library
Stars: ✭ 540 (+4053.85%)
Mutual labels:  reports, report
Report
📜 🎉 Automated reporting of objects in R
Stars: ✭ 348 (+2576.92%)
Mutual labels:  reports, report
Eye
Eyewitness.io package for Laravel 5 applications
Stars: ✭ 114 (+776.92%)
Mutual labels:  cron, laravel-package
Laravel Notify
Flexible Flash notifications for Laravel
Stars: ✭ 787 (+5953.85%)
Mutual labels:  notifications, laravel-package
Snooze
A package to simplify automating future notifications and reminders in Laravel
Stars: ✭ 515 (+3861.54%)
Mutual labels:  notifications, laravel-package
Openvasreporting
OpenVAS Reporting: Convert OpenVAS XML report files to reports
Stars: ✭ 42 (+223.08%)
Mutual labels:  reports, report
Laravel Console Logger
Logging and Notifications for Laravel Console Commands.
Stars: ✭ 79 (+507.69%)
Mutual labels:  notifications, laravel-package
tall-toasts
A Toast notification library for the Laravel TALL stack. You can push notifications from the backend or frontend to render customizable toasts with almost zero footprint on the published CSS/JS 🔥🚀
Stars: ✭ 296 (+2176.92%)
Mutual labels:  notifications, laravel-package
MongoosePush
MongoosePush is a simple Elixir RESTful service allowing to send push notification via FCM and/or APNS.
Stars: ✭ 101 (+676.92%)
Mutual labels:  notifications
AndroidProjects
个人总结归纳Android知识点。1.Data Binding框架MVVM;2. BaseView;3.CollapseView;4.Notification;5.MultiChannelBuild;6.SwipeBack;7.CustomTabs;8.HandlerCourse;9.VolleyStudy;10.OkHttpStudy;11.PermissionManage;12.InterView;13.KotlinLearning
Stars: ✭ 32 (+146.15%)
Mutual labels:  notifications
debounced-notifications
Basecamp style notification debouncing / throttling for Laravel notifications.
Stars: ✭ 30 (+130.77%)
Mutual labels:  notifications
laravel-crud-generator
Laravel CRUD Generator
Stars: ✭ 181 (+1292.31%)
Mutual labels:  laravel-package
laravel-blade-on-demand
Compile Blade templates in memory
Stars: ✭ 36 (+176.92%)
Mutual labels:  laravel-package
artisan-beans
Easily manage your Beanstalkd job queues right from the Laravel artisan command
Stars: ✭ 41 (+215.38%)
Mutual labels:  laravel-package
mw-discord
📝 MediaWiki extension that sends notifications to Discord, used on https://runescape.wiki.
Stars: ✭ 16 (+23.08%)
Mutual labels:  notifications
twilio-voice-notification-app
Reference app built in ReactJS that demonstrates how to leverage Twilio Programmable Voice and Twilio SDKs to create a voice notification system.
Stars: ✭ 21 (+61.54%)
Mutual labels:  notifications
Registry Monitor
A Windows script to monitor registry hives for modifications & notify you when modifications have occured.
Stars: ✭ 19 (+46.15%)
Mutual labels:  notifications
discord.emojis
hourly cron scraping emojis table from discord client
Stars: ✭ 17 (+30.77%)
Mutual labels:  cron
laravel-surveillance-ui
Provides a Graphical UI for Laravel Surveillance package and integrates within your existing application.
Stars: ✭ 20 (+53.85%)
Mutual labels:  laravel-package

REPORTS

Requirements : PHP verison >= 7.1.0 Laravel version >= 5.5

not support Laravel version 5.8 & >

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

composer require agoalofalife/reports
php artisan reports: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

  <body>
    @include('reports::app')
    ...

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

You create new file report:

php artisan make:report NameReport

Insert in config config/reports.php :

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

Fill the class:

<?php
declare(strict_types=1);
namespace App\Reports;

use agoalofalife\Reports\Contracts\HandlerReport;
use agoalofalife\Reports\Report;

class TestReport extends Report implements HandlerReport
{
    /**
     * Disk for filesystem
     * @var string
     */
    public $disk = 'public';

  /**
     * Format export : xls, xlsx, pdf, csv
     * @var string
     */
    public $extension = 'xlsx';

     /**
     * Get file name
     * @return string
     */
    public function getFilename() : string
    {
        return 'TestReport';
    }

    /**
     * Get title report
     * @return string
     */
    public function getTitle() : string
    {
        return 'Test';
    }

    /**
     * Get description report
     * @return string
     */
    public function getDescription() : string
    {
        return 'Description test report';
    }

    /**
     * @param $excel
     * @return bool
     */
    public function handler($excel) : bool
    {
      $excel->sheet('Sheetname', function ($sheet) {
            $sheet->rows(array(
                array('test1', 'test2'),
                array('test3', 'test4')
            ));
        });
      return true;
    }
}

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.

    // implements agoalofalife\Reports\Contracts\NotificationReport
    public function getNotifiable()
    {
        return User::where('email', '[email protected]')->get()->first();
    }

    public function getNotification(): Notification
    {
        return new InvoicePaid();
    }
// app/User.php

    public function routeNotificationForSlack($notification)
    {
        return 'hook';
    }
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].