Download the PHP package rishadblack/wire-reports without Composer
On this page you can find all versions of the php package rishadblack/wire-reports. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download rishadblack/wire-reports
More information about rishadblack/wire-reports
Files in rishadblack/wire-reports
Package wire-reports
Short Description Create responsive, real-time report views in Laravel using WireReports. Powered by Livewire, this package allows effortless exporting to PDF, Excel, or print, streamlining your reporting process.
License AGPL-3.0
Homepage https://github.com/rishadblack/wire-reports
Informations about the package wire-reports
WireReports
WireReports is a Laravel package designed to facilitate the creation of dynamic Livewire report components. It includes features for exporting reports to PDF and Excel formats and offers an easy way to generate and manage report components with custom views and data builders.
Features
- Create Livewire report components with a single command
- Export reports to PDF using SnappyPdf or mPDF
- Export reports to Excel using Maatwebsite\Excel
- Customizable views for reports
- Supports hierarchical folder structure for components and views
Installation
To install the package, you can use Composer:
Publishing Stubs
To publish the package stubs for customization, run:
Usage
Creating a Report Component
You can create a new Livewire report component using the Artisan command:
The {name} argument should be the name of the component. You can include subfolders by using dot notation (e.g., Demo.Test). Example
To create a report component named TestReport in the Demo folder:
This will create:
A Livewire component file at app/Livewire/Reports/Demo/TestReport.php
A Blade view file at resources/views/livewire/reports/demo/test-report.blade.php
Deleting a Report Component
You can delete an existing Livewire report component using the Artisan command:
The {name} argument should be the name of the component to delete. It will remove both the component class and the associated view file. Example
To delete the TestReport component from the Demo folder:
This will remove:
The Livewire component file at app/Livewire/Reports/Demo/TestReport.php
The Blade view file at resources/views/livewire/reports/demo/test-report.blade.php
Customizing the Report Component
Edit the generated component file to define your report's data builder and view:
Edit the Blade view file to customize the report layout:
License
This package is licensed under the MIT License. See LICENSE for more details.
Contributing
Contributions are welcome! Please refer to CONTRIBUTING.md for guidelines.
Support
For issues or feature requests, please open an issue on the GitHub repository.
All versions of wire-reports with dependencies
illuminate/support Version ^9.0|^10.0|^11.0|^12.0
maatwebsite/excel Version ^3.1
barryvdh/laravel-snappy Version ^1.0
carlos-meneses/laravel-mpdf Version ^2.1
h4cc/wkhtmltopdf-amd64 Version ^0.12.4