https://code-boxx.com/php-add-rows-excel/
- GIST does not allow Excel files. Convert
x-dummy.csv
tox-dummy.xlsx
on your own, or use your own dummy Excel file. - Install Composer - https://getcomposer.org/
- Install PHPSpreadsheet.
- Open the terminal.
- Navigate to your project folder -
cd MY/PROJECT/FOLDER
- Run
composer require phpoffice/phpspreadsheet