stimulsoft / reports-php
Stimulsoft Reports.PHP
2024.3.6
2024-09-23 07:01 UTC
Requires
- php: >=5.6
- ext-json: *
- ext-mbstring: *
- ext-zlib: *
- phpmailer/phpmailer: ^6.6
Suggests
- ext-interbase: *
- ext-mssql: *
- ext-mysqli: *
- ext-oci8: *
- ext-odbc: *
- ext-pdo: *
- ext-pgsql: *
- ext-sqlsrv: *
- dev-master
- 2024.3.6
- 2024.3.5
- 2024.3.4
- 2024.3.3
- 2024.3.2
- 2024.3.1
- 2024.2.6
- 2024.2.5
- 2024.2.4
- 2024.2.3
- 2024.2.2
- 2024.2.1
- 2024.1.4
- 2024.1.3
- 2024.1.2
- 2024.1.1
- 2023.4.4
- 2023.4.3
- 2023.4.2
- 2023.4.1
- 2023.3.4
- 2023.3.3
- 2023.3.2
- 2023.3.1
- 2023.2.8
- 2023.2.7
- 2023.2.6
- 2023.2.5
- 2023.2.4
- 2023.2.3
- 2023.2.2
- 2023.2.1
- 2023.1.8
- 2023.1.7
- 2023.1.6
- 2023.1.5
- 2023.1.4
- 2023.1.3
- 2023.1.2
- 2023.1.1
- 2022.4.5
- 2022.4.4
- dev-major
This package is auto-updated.
Last update: 2024-09-24 09:25:30 UTC
README
Stimulsoft Reports.PHP 是一个用于在互联网上创建、编辑和查看报告的工具,它使用客户端-服务器技术。PHP 脚本在服务器端运行并控制报告生成。JavaScript 报告引擎在客户端运行,为几乎任何客户端提供报告生成的通用机制。快速且强大的报告引擎,丰富且直观的界面,部署和许可。
安装
该产品通过 Composer 仓库进行分发。您可以使用以下命令添加必要的库:
composer require stimulsoft/reports-php
用法
将必要的代码添加到页面中
<?php require_once 'vendor/autoload.php'; ?>
在 <head> 部分中渲染必要的脚本
<head> <?php $js = new \Stimulsoft\StiJavaScript(\Stimulsoft\StiComponentType::Viewer); $js->renderHtml(); ?> </head>
在页面的 <script> 部分中创建并渲染请求处理器
<script> <?php $handler = new \Stimulsoft\StiHandler(); $handler->renderHtml(); ?> </script>
在页面的 <script> 部分中创建并渲染组件
<script> <?php $viewer = new \Stimulsoft\Viewer\StiViewer(); $report = new \Stimulsoft\Report\StiReport(); $report->loadFile('reports/SimpleList.mrt'); $viewer->report = $report; $viewer->renderHtml(); ?> </script>