roromix / spreadsheetbundle
这是一个从 Symfony 3.2 到 7 的 Bundle,它可以帮助您读取和写入电子表格文件(包括 pdf、xls、xlsx、odt、csv),多亏了 PHPSpreadsheet 库的支持。
v2.0.1
2024-01-14 13:47 UTC
Requires
- php: >=7.1
- phpoffice/phpspreadsheet: ~1.0
- symfony/framework-bundle: ~4.0|~5.0|~6.0|~7.0
README
这是一个从 Symfony 3 到 7 的 Bundle,它可以帮助您读取和写入电子表格文件(包括 pdf、xls、xlsx、odt、csv),多亏了 PHPSpreadsheet 库的支持。
支持格式
支持的格式与 PhpSpreadsheet 相同(Open Document .ods、Office Excel .xlsx、BIFF 8 .xls、CSV、PDF)。
安装
1 将以下内容添加到 composer.json 中的 require 键
composer require roromix/spreadsheetbundle
2 注册 Bundle
Symfony 标准安装: app/AppKernel.php
$bundles = array( // ... new Roromix\Bundle\SpreadsheetBundle\RoromixSpreadsheetBundle(), );
Symfony Flex 安装(通常是自动生成的): config/bundles.php
return [ // ... Roromix\Bundle\SpreadsheetBundle\RoromixSpreadsheetBundle::class => ['all' => true], ];
许可证
此 Bundle 采用 MIT 许可证。请参阅 Bundle 中的完整许可证。