rdpascua/reporter 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

rdpascua/reporter

Composer 安装命令:

composer require rdpascua/reporter

包简介

An elegant wrapper for JasperStarter using Laravel

README 文档

README

An elegant wrapper for JasperStarter using Laravel

Installation

composer require rdpascua/reporter

Usage

Loading a report and streaming it to the browser

use Rdpascua\Reporter\Facades\Reporter;

// Stream the report to the browser
Reporter::load('path/to/jasper/file.jasper')->stream('document.pdf');

Passing parameters

Reporter::load('path/to/jasper/file.jasper', [
    'param1' => 'value1',
    'param2' => 'value2',
])
->stream('document.pdf');

Saving the report to a file

Reporter::load('path/to/jasper/file.jasper', [
    'param1' => 'value1',
    'param2' => 'value2',
])
->save('document.pdf');

Generate a report using a database connection

Reporter::load('path/to/jasper/file.jasper')->withDataSource('pgsql')->save('document.pdf');

Compiling a jrxml file

Reporter::load('path/to/jasper/file.jrxml')->compile('path/to/jasper/file.jasper');

TODO: Compiling multiple jrxml files

Reporter::load([
    'path/to/jasper/file1.jrxml',
    'path/to/jasper/file2.jrxml',
    'path/to/jasper/file3.jrxml',
])->compile();

// Generates the following files
// path/to/jasper/file1.jasper
// path/to/jasper/file2.jasper
// path/to/jasper/file3.jasper

TODO

  • Compiling multiple jrxml files
  • Add support for jdbc connections
  • Add support for csv
  • Add support for xml
  • Add support for json

统计信息

  • 总下载量: 1.01k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: HTML

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-03-30