1.composer安装: composer require phpoffice/phpspreadsheet 2.点击导出按钮,触发控制器里面的方法 wdjzdc() 3. 在控制中引入 use PhpOffice\PhpSpreadsheet\Spreadsheet; use PhpOffice\PhpSpreadsheet\Writer\Xlsx; //wdjzdc数据导出 public function wdjzdc() { $spreadsheet = new Spreadsheet(
当你在使用phpoffice/phpexcel 类库时候.composer 会给你提示一句话 Package phpoffice/phpexcel is abandoned, you should avoid using it. Use phpoffice/phpspreadsheet instead phpexcel 已被废弃,建议我们用phpspreadsheet, 包地址: https://packagist.org/packages/phpoffice/phpspreadsheet co
mysql 7安装及问题解决 一.mysql下载 下载地址:https://www.mysql.com/downloads/ Community (GPL) Downloads MySQL Community Server (GPL) Windows (x86, 64-bit), ZIP Archive No thanks, just start my download. 二.mysql安装 解压到指定目录 在mysql bin目录下打开cmd 安装mysql服务,执行mysqld --init