开源 PHP 报表工具

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/920889/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-25 00:20:01  来源:igfitidea点击:

Open source PHP reporting tool

phpreporting

提问by taras

I am developing web based application, i need php reporting lib/class to make the job easy. I need PDF/Excel format. The report based on related db tables(member bills, member info) Is there any advanced open source solution ?

我正在开发基于 Web 的应用程序,我需要 php 报告库/类来简化工作。我需要 PDF/Excel 格式。基于相关数据库表(会员账单,会员信息)的报告有没有先进的开源解决方案?

Thanks

谢谢

回答by Kris Erickson

There are tons of reporting libraries, most of which create Xml or Csv. You would have to give more data about what kind of reporting you need for a recommendation. I haven't used PHPExcelyet, but it is the first attempt I have seen to actually create Excel documents rather than creating CSV's that will load in Excel. PDF creation is built into PHP with the PDF functions, and is fairly easy to do.

有大量的报告库,其中大部分创建 Xml 或 Csv。您必须提供更多关于推荐所需的报告类型的数据。我还没有使用PHPExcel,但这是我第一次尝试实际创建 Excel 文档,而不是创建将在 Excel 中加载的 CSV。PDF 创建内置于 PHP 中,并带有PDF 函数,并且相当容易。

回答by Nayan Paul

I Think PHP Report Maker is ther best php Reporting Tool's but it is not free or open source.

我认为 PHP Report Maker 是最好的 php 报告工具,但它不是免费的或开源的。

回答by lolcode

A newer library that looks very promising is PHP Reports by jdorn on github.

一个看起来很有前途的新库是github 上 jdorn 的 PHP Reports

This is unrelated to the older library by the same name hosted on Sourceforge.

这与托管在 Sourceforge 上的同名旧库无关。

basic report image

基本报告图片

回答by Jim Nickel

A bit late, but you might want to check out RLib - works with PHP and MySQL and creates multiple different types - PDF, CSV, HTML etc.

有点晚了,但您可能想查看 RLib - 使用 PHP 和 MySQL 并创建多种不同的类型 - PDF、CSV、HTML 等。

http://rlib.sicompos.com/

http://rlib.sicompos.com/

回答by Jon Winstanley

Unfortunately I don't know of a decent reporting class in PHP.

不幸的是,我不知道在 PHP 中有一个像样的报告类。

Do you need a full reporting suite, or do you just need to be able to export data to the pdf and Excel file formats?

您需要一个完整的报告套件,还是只需要能够将数据导出为 pdf 和 Excel 文件格式?

If you only need to create these kind of pages, the simplest solution would be to display the data you require and add CutePdf software which installs itself as a printer. Then you can print to pdf from the browser.

如果您只需要创建这些类型的页面,最简单的解决方案是显示您需要的数据并添加将自身安装为打印机的 CutePdf 软件。然后,您可以从浏览器打印为 pdf。

If you need to create pdf files on the server side, there is a pdf creation library in the Zend Framework. ZendFramework-1.8.1\library\Zend\Pdf

如果需要在服务器端创建pdf文件,Zend Framework中有pdf创建库。ZendFramework-1.8.1\library\Zend\Pdf