roromix/spreadsheetbundle

这是一个从 Symfony 3.2 到 7 的 Bundle,它可以帮助您读取和写入电子表格文件(包括 pdf、xls、xlsx、odt、csv),多亏了 PHPSpreadsheet 库的支持。

安装量: 364,507

依赖项: 1

建议者: 0

安全: 0

星标: 23

关注者: 3

分支: 7

开放问题: 0

类型:symfony-bundle

v2.0.1 2024-01-14 13:47 UTC

This package is auto-updated.

Last update: 2024-09-14 15:21:56 UTC


README

这是一个从 Symfony 3 到 7 的 Bundle,它可以帮助您读取和写入电子表格文件(包括 pdf、xls、xlsx、odt、csv),多亏了 PHPSpreadsheet 库的支持。

Total Downloads Latest Stable Version Latest Unstable Version

支持格式

支持的格式与 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 中的完整许可证。

License