zl程序教程

您现在的位置是:首页 >  工具

当前栏目

thinkphp thinkadmin使用phpspreadsheet批量导出excel数据

Excel批量导出数据 thinkphp 使用
2023-09-27 14:27:29 时间

由于PHPExcel早就停止更新维护,建议使用phpspreadsheet,本文就教你如何用PhpSpreadsheet导出excel
注:原生导出excel可以看我另一篇文章https://blog.csdn.net/qq_36303853/article/details/100283687

安装

1.环境要求:

PHP >= 5.6
	开启php_zip扩展
	开启php_xml扩展
	开启php_gd2扩展

2.使用composer安装,依次输入下面2条指令

composer config -g repo.packagist composer https://mirrors.aliyun.com/composer/
composer require phpoffice/phpspreadsheet -vvv

3.安装成功