在日常的程序开发中,我们可能需要用到导出excel的功能
当然我们可以通过`composer require phpoffice/phpspreadsheet`安装扩展包来实现
有没有别的办法
第一步;下载phpexcel `https://github.com/PHPOffice/PHPExcel`
第二步:项目目录里新建Libs文件夹,里面放对应的文件,目录结构自己实际调整

第三步:composer.json文件里 autuoload加入对应的路径

第四步项目根目录运行 `composer dumpautoload`
第五步:在控制器中 :new \PHPExcel(); 调用即可