chmat / excel-bundle
该包已被弃用且不再维护。没有建议的替代包。
此包将phpExcel库集成到Symfony包中。它允许您读取(和写入)简单的Excel|CSV文件。
v2.0.4
2017-01-16 14:56 UTC
Requires
- php: >=5.4.0
- phpoffice/phpexcel: ^1.8
- symfony/symfony: ~2.3|~3.0
This package is not auto-updated.
Last update: 2023-04-29 10:39:31 UTC
README
此包将phpExcel库集成到Symfony包中。它允许您读取(和写入)简单的Excel|CSV文件。
📕 存档仓库
此仓库不再维护。
安装
将包添加到您的 composer.json
在 require 部分添加包引用
"require": {
// ...
"chmat/excel-bundle": "~2.0" // check Versions section for details on version numbering
// ...
}
更新您的依赖项
$ composer update
在 AppKernel.php 中启用包
通过声明此包修改您的 app/AppKernel.php 文件。
// In app/AppKernel.php
<?php
public function registerBundles()
{
$bundles = array(
// ...
new ChMat\ExcelBundle\ChMatExcelBundle(),
// ...
);
}
使用方法
待更新。
此包声明了两个服务以供您使用。您无需自行声明它们。
services:
chmat.excel_reader:
class: ChMat\ExcelBundle\Service\ExcelReader
chmat.excel_writer:
class: ChMat\ExcelBundle\Service\ExcelWriter
贡献
欢迎提交拉取请求!
版本
从v2.0开始,版本号按照以下原则构建。
有效的版本号将始终以x.y.z的形式出现。任何值的增加都意味着
- x - 主要更改:通常将包括破坏性更改
- y - 新特性:可能包括破坏性更改
- z - 错误修复和文档更新:不会包括破坏性更改
有关可用版本号的更多信息,请参阅GitHub上的仓库。
许可证
此包受MIT许可证的约束,该许可证包含在此源代码的LICENSE文件中。