salekur/nova-report-generator
Composer 安装命令:
composer require salekur/nova-report-generator
包简介
A Laravel Nova report generator tool.
README 文档
README
A Laravel Nova report generator tool that can generate reports for any model with selected columns. It can also export the data in CSV and PDF format. It also has a filter option for date range and has functionality to sum any column. It is a very simple tool that can be used for generating reports for any model on any Laravel project which use Laravel Nova.
Dependencies
Installation
composer require salekur/nova-report-generator
Compatibility
I have tested the following dependency versions.
| Dependency | Versions |
|---|---|
| PHP | >= 7.3 |
| Laravel | >= 8.0 |
| Nova | >= 4.0 |
| laravel-dompdf | * (any) |
Publish Configuration
Publish the configuration file using the following command:
php artisan vendor:publish --tag=reporter-config --provider=Salekur\NovaReportGenerator\ToolServiceProvider
Publish Views (Optional)
You can publish the views file if you want to customize the views. Publish the views file using the following command:
php artisan vendor:publish --tag=reporter-views --provider=Salekur\NovaReportGenerator\ToolServiceProvider
Default Configuration
<?php return [ /** * Name of the tool. * * This name will be displayed in the navigation bar and on the tool's index page. * */ 'name' => 'Reporter', /** * Path for the tool. * * This path will be used for building the url to the tool. * */ 'path' => 'reporter', /** * Icon name of the tool. * * This icon will be displayed on the navigation bar. * Icons list can be found at https://heroicons.com * */ 'icon' => 'document-text', /** * Tool's visibility. * * This option determines whether the tool will be displayed in the navigation bar or not. * */ 'visible' => true, /** * Export options. * * Options for exporting data. * */ 'export' => [ /** * Name of the export file. * * This name will be used for generating the file. * */ // 'name' => 'export', /** * Channels for exporting data. * * This option determines which channels will be available for exporting data. * */ 'channels' => [ 'csv' => true, 'pdf' => true ], /** * PDF options. * * Options for generating PDF. * */ 'config' => [ 'format' => 'A4', 'orientation' => 'landscape', 'header' => [ // 'image' => public_path('images/logo.png'), 'title' => 'Invoice' ] ] ], /** * Models for the tool. * * This option determines which models will be available for generating reports. * */ 'models' => [ 'user' => [ 'name', 'email', 'created_at' => [ // label for the column 'label' => 'Date', // if you want to use period filter then set 'period' to true 'period' => true ] ], 'order' => [ 'number', 'status', 'price' => [ // if you want to use sum of number column then set 'summable' to true 'summable' => true ], 'created_at' => [ // label for the column 'label' => 'Date', // if you want to use period filter then set 'period' to true 'period' => true ] ], ] ];
Issues
- Support for relational field is not yet complete.
- If if have any other issues then let me know at Issues
Credits
salekur/nova-report-generator 适用场景与选型建议
salekur/nova-report-generator 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 22 次下载、GitHub Stars 达 0, 最近一次更新时间为 2023 年 10 月 01 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「nova」 「laravel」 「reporter」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 salekur/nova-report-generator 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 salekur/nova-report-generator 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 salekur/nova-report-generator 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
A Laravel Nova card that shows you your system information.
Provides a TAP result printer for PHPUnit.
A Laravel Nova card.
An interface to report and relay arbitrary messages to registered handlers, plus test doubles
Qase TMS reporter for Pest PHP testing framework
A Laravel Nova package for publishable fields
统计信息
- 总下载量: 22
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 9
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-10-01