ahmadyusri / phpspreadsheet
从 phpoffice/phpspreadsheet 分支而来:PHPSpreadsheet - 使用 PHP 读取、创建和写入电子表格文档 - 电子表格引擎
Requires
- php: ^7.3 || ^8.0
- ext-ctype: *
- ext-dom: *
- ext-fileinfo: *
- ext-gd: *
- ext-iconv: *
- ext-libxml: *
- ext-mbstring: *
- ext-simplexml: *
- ext-xml: *
- ext-xmlreader: *
- ext-xmlwriter: *
- ext-zip: *
- ext-zlib: *
- ezyang/htmlpurifier: ^4.13
- maennchen/zipstream-php: ^2.1
- markbaker/complex: ^3.0
- markbaker/matrix: ^3.0
- psr/http-client: ^1.0
- psr/http-factory: ^1.0
- psr/simple-cache: ^1.0 || ^2.0 || ^3.0
Requires (Dev)
- dealerdirect/phpcodesniffer-composer-installer: dev-master
- dompdf/dompdf: ^1.0
- friendsofphp/php-cs-fixer: ^3.2
- jpgraph/jpgraph: ^4.0
- mpdf/mpdf: 8.1.1
- phpcompatibility/php-compatibility: ^9.3
- phpstan/phpstan: ^1.1
- phpstan/phpstan-phpunit: ^1.0
- phpunit/phpunit: ^8.5 || ^9.0
- squizlabs/php_codesniffer: ^3.7
- tecnickcom/tcpdf: ^6.4
Suggests
- dompdf/dompdf: Option for rendering PDF with PDF Writer (doesn't yet support PHP8)
- jpgraph/jpgraph: Option for rendering charts, or including charts with PDF or HTML Writers
- mpdf/mpdf: Option for rendering PDF with PDF Writer
- tecnickcom/tcpdf: Option for rendering PDF with PDF Writer (doesn't yet support PHP8)
- dev-master
- 1.23.2
- 1.23.1
- 1.23.0
- 1.22.0
- 1.21.0
- 1.20.0
- 1.19.0
- 1.18.0
- 1.17.1
- 1.17.0
- 1.16.0
- 1.15.0
- 1.14.1
- 1.14.0
- 1.13.0
- 1.12.0
- 1.11.0
- 1.10.1
- 1.10.0
- 1.9.0
- 1.8.2
- 1.8.1
- 1.8.0
- 1.7.0
- 1.6.0
- 1.5.2
- 1.5.1
- 1.5.0
- 1.4.1
- 1.4.0
- 1.3.1
- 1.3.0
- 1.2.1
- 1.2.0
- 1.1.0
- 1.0.0
- 1.0.0-beta2
- 1.0.0-beta
- dev-PhpBench-Performance-in-CI
- dev-CalculationEngine-Array-Formulae-Initial-Work
- dev-2.0-Development
- dev-Clear-In-Memory-Cache-when-unsetting_worksheet
- dev-Experiment-Maintaining-Excel-Function-List-as-an-ArrayObject-2
- dev-Experiment-Maintaining-Excel-Function-List-as-an-ArrayObject
- dev-2.0-Cell-Index-Experiment
- dev-Issue-2551_Array-enable-Database-Functions
- dev-PHP8-Sane-Property-Names
- dev-Xlsx-Reader-Refactor-Zip-Reader
- dev-Trend-Unit-Tests
- dev-NumberFormatMask-Helpers
- dev-Excel-Formula-Exception-Codes
This package is auto-updated.
Last update: 2024-09-26 20:23:29 UTC
README
PhpSpreadsheet 是一个纯 PHP 编写的库,提供一组类,允许您读取和写入各种电子表格文件格式,如 Excel 和 LibreOffice Calc。
PHP 版本支持
LTS:PHP 版本的维护将仅在该 PHP 版本的生命周期结束后六个月进行。
目前所需的最小 PHP 版本是 PHP 7.3。
查看 composer.json
了解其他要求。
安装
使用 composer 将 PhpSpreadsheet 安装到您的项目中
composer require phpoffice/phpspreadsheet
如果您在开发机器上构建安装,该机器的 PHP 版本与将要部署的服务器不同,或者您的 PHP CLI 版本与运行时(如 php-fpm
或 Apache 的 mod_php
)不同,那么在安装前,您可能需要在您的 composer.json
中添加以下内容
{ "require": { "phpoffice/phpspreadsheet": "^1.23" }, "config": { "platform": { "php": "7.3" } } }
然后运行
composer install
以确保获取到与您的部署环境匹配的正确依赖项。
有关更多详细信息,请参阅 CLI 与应用程序运行时。
文档
有关更多信息,包括安装说明,请参阅 官方文档。或者查看 API 文档。
请在 StackOverflow 上提出您的支持问题,或在 Gitter 上快速聊天。
PHPExcel 与 PhpSpreadsheet 有何不同?
PhpSpreadsheet 是 PHPExcel 的下一个版本。它打破了兼容性,以显著提高代码库质量(命名空间、PSR 兼容性、使用最新的 PHP 语言特性等)。
由于所有努力都转移到了 PhpSpreadsheet,PHPExcel 将不再维护。所有针对 PHPExcel 的贡献、补丁和新功能都应针对 PhpSpreadsheet 的 master
分支。
需要迁移吗?有一个 自动化工具 可用。
许可协议
PhpSpreadsheet 采用 MIT 许可协议。