先安裝「php-cli」。
請參考範例「demo-install-php-cli/ex-install-php-cli」。
接著安裝「composer」。
請參考範例「demo-install-composer/ex-install-composer」。
在安裝「phpoffice/phpspreadsheet」前,
請先確保已經事先安裝了所需要的「php-extension」。
請參考範例「demo-install-php-cli/ex-install-php-ext-for-php-spreadsheet」。
接著安裝「phpoffice/phpspreadsheet」,
請參考範例「hello-world」的安裝方式,
另一個方式,則是參考「case-discussion」的安裝方式。