canducci/laravel-dompdf-helpers
Composer 安装命令:
composer require canducci/laravel-dompdf-helpers
包简介
Helper Laravek DomPdf
README 文档
README
Installation
First go to the website barryvdh/laravel-dompdf and configure the package before this installation. Then do these procedures:
composer require canducci/laravel-dompdf-helpers
Use Helpers
$instance = printer(); $instance->loadView($view, $data); $instance->download(); // or $instance->stream();
Report View Laravel blade
Example 1
$instance = printer_view($view, $data); $instance->stream(); // or $instance->download();
Example 2
return printer_view_stream($view, $data); // or printer_view_download($view, $data);
Report File
Example 1
$instance = printer_file($path); $instance->stream(); // or $instance->download();
Example 2
return printer_file_stream($path); // or printer_file_download($path);
Report HTML
Example 1
$instance = printer_html($path); $instance->stream(); // or $instance->download();
Example 2
return printer_html_stream($path); // or printer_html_download($path);
统计信息
- 总下载量: 6
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2021-04-23