2-1
PhpSpreadsheet的安裝及使用
一、安裝PhpSpreadsheet
- 官網:https://github.com/PHPOffice/PhpSpreadsheet
- 手冊:https://phpspreadsheet.readthedocs.io/en/develop/
- 先在網頁錄下建立專案資料夾。如:excel
- 進入專案資料夾執行以下指令:
- 如此即可安裝好PhpSpreadsheet 元件
二、基本Excel
- 建立excel.php
三、利用PHP內建伺服器運作
- 在終端機執行:
- 如此,無須網頁伺服器即可運作:
四、若想直接下載成xlsx
四、若想直接下載成xls