lapinator/ods-php-generator
Composer 安装命令:
composer require lapinator/ods-php-generator
包简介
Open Document Spreadsheet (.ods) generator
关键字:
README 文档
README
odsPhpGenerator is a library written in PHP to generate Open Document Spreadsheet (.ods)
Features
- UTF-8 Encoding
- Multi tables
- Merge Cells
- Formula
- Images
- And more
Install
By composer :
$ composer require lapinator/ods-php-generator
Example
use odsPhpGenerator\ods; use odsPhpGenerator\odsTable; use odsPhpGenerator\odsTableRow; use odsPhpGenerator\odsTableCellString; // Load library require_once '../vendor/autoload.php'; // Create Ods object $ods = new ods(); // Create table named 'table 1' $table = new odsTable('table 1'); // Create the first row $row = new odsTableRow(); // Create and add 2 cell 'Hello' and 'World' $row->addCell( new odsTableCellString("Hello") ); $row->addCell( new odsTableCellString("World") ); // Attach row to table $table->addRow($row); // Attach talble to ods $ods->addTable($table); // Download the file $ods->downloadOdsFile("HelloWorld.ods");
More examples in directory examles
统计信息
- 总下载量: 3.6k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 6
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: LGPL-3.0
- 更新时间: 2016-04-14
