Ubuntu Apache PHP - 创建并写入 Excel 文档
Ubuntu Apache PHP - Create and write to an Excel Document
我听说 PHP Excel 以便在 PHP 中使用 excel 文档。但是,我是否需要在 Ubuntu 系统上安装 MS Office 才能工作和提供 excel 文档?或者 PHP Excel 扩展是否可以在任何系统中临时处理 excel 文档?
PHPExcel 是纯粹的 PHP,不需要以任何方式访问 MS Office
的自述文件
PHPExcel is a library written in pure PHP and providing a set of classes that allow you to write to and read from different spreadsheet file formats, like Excel (BIFF) .xls, Excel 2007 (OfficeOpenXML) .xlsx, CSV, Libre/OpenOffice Calc .ods, Gnumeric, PDF, HTML, ... This project is built around Microsoft's OpenXML standard and PHP.
要求
- PHP 5.2.0 或更高版本
- PHP 扩展 php_zip 已启用(如果您需要 PHPExcel 来处理 .xlsx、.ods 或 .gnumeric 文件,则需要)
- PHP 扩展 php_xml 启用
- PHP 扩展 php_gd2 已启用(可选,但需要精确的列宽自动计算)
我听说 PHP Excel 以便在 PHP 中使用 excel 文档。但是,我是否需要在 Ubuntu 系统上安装 MS Office 才能工作和提供 excel 文档?或者 PHP Excel 扩展是否可以在任何系统中临时处理 excel 文档?
PHPExcel 是纯粹的 PHP,不需要以任何方式访问 MS Office
的自述文件PHPExcel is a library written in pure PHP and providing a set of classes that allow you to write to and read from different spreadsheet file formats, like Excel (BIFF) .xls, Excel 2007 (OfficeOpenXML) .xlsx, CSV, Libre/OpenOffice Calc .ods, Gnumeric, PDF, HTML, ... This project is built around Microsoft's OpenXML standard and PHP.
要求
- PHP 5.2.0 或更高版本
- PHP 扩展 php_zip 已启用(如果您需要 PHPExcel 来处理 .xlsx、.ods 或 .gnumeric 文件,则需要)
- PHP 扩展 php_xml 启用
- PHP 扩展 php_gd2 已启用(可选,但需要精确的列宽自动计算)