定制 gaiththewolf/jasper-report-client 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

gaiththewolf/jasper-report-client

Composer 安装命令:

composer require gaiththewolf/jasper-report-client

包简介

Laravel package integrating the Jasper Server REST v2 client (Jaspersoft/rest-client)

README 文档

README

Latest Version on Packagist Total Downloads

This is a Laravel package integrating the Jasper Server REST v2 client (Jaspersoft/rest-client).

Inspired from JasperReportBundle

Requirements

To use this package, you will need:

  • JasperReports Server (version >= 5.2)
  • PHP (version >= 5.3, with cURL extension)

Installation

You can install the package via composer:

composer require gaiththewolf/jasper-report-client

The package will automatically register itself.

You can publish the config with:

php artisan vendor:publish --provider="Gaiththewolf\JasperReportClient\JasperReportClientServiceProvider" --tag="config"

.env file

JRS_BASE_URL="http://127.0.0.1:8080/jasperserver"
JRS_USERNAME="jasperadmin"
JRS_PASSWORD="jasperadmin"
JRS_ORG_ID=null

Usage

Generating report

use JSRClient;

class TestController extends Controller {

    public function generate_report() {
        $format = "html";
        $reportUnit = "/reports/my_report_liste";
        $params = array(
            "inputControl1" => "value 1",
            "inputControl2" => "value 2",
            "inputControl3" => "value 3",
        );
        $res = JSRClient::generate($reportUnit, $params, $format);
        return $res;
    }
}

Supported Format

- html
- xml
- pdf
- xlsx
- xls
- rtf
- csv
- odt
- docx
- ods
- pptx

Get report input Controls

use JSRClient;

class TestController extends Controller {

    public function get_inputControls_report() {
        $reportUnit = "/reports/my_report_liste";
        $res = JSRClient::getReportInputControls($reportUnit);
        dd($res);
    }
}

Changelog

Please see CHANGELOG for more information what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please email gaiththewolf@gmail.com instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.

Laravel Package Boilerplate

This package was generated using the Laravel Package Boilerplate.

统计信息

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

GitHub 信息

  • Stars: 3
  • Watchers: 1
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-02-13

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固