Tag
PHP
Copy A Worksheet Into Another Excel File In PHP Using PHPSpreadSheet
Merging workbooks looks like a job for addSheet(), but across two files that call succeeds silently and then dies on save with a TypeError about an integer. addExternalSheet()…
August 11, 2026 · PhpSpreadsheet
Append Google Sheets Rows Using Google Sheets API PHP Client
Adding a row to the bottom of a sheet is the most common Google Sheets job a PHP script does, and values->append() finds the end of the table…
August 11, 2026 · Google Sheets API PHP Client
Read Google Sheets Cells Using Google Sheets API PHP Client
The Google Sheets API does not hand back a neat rectangle: it trims trailing rows, returns short rows short, and answers an empty range with null rather than…
August 11, 2026 · Google Sheets API PHP Client
Authenticate With A Service Account Using Google Sheets API PHP Client
A service account lets a PHP script reach Google Sheets with no browser, no consent screen and no token file, which is what makes it the right credential…
August 10, 2026 · Google Sheets API PHP Client
Read Large Excel Files In Chunks In PHP Using PHPSpreadSheet
This article shows how to read a large Excel file a few thousand rows at a time instead of all at once, using a read filter. Loading a…
July 22, 2026 · PhpSpreadsheet
Read Formula Results In Excel Files In PHP Using PHPSpreadSheet
This article shows how to read what a formula in an Excel file actually works out to, rather than the formula itself. Reading a cell with getValue() returns…
July 21, 2026 · PhpSpreadsheet
Export MySQL Data To Excel Files In PHP Using PHPSpreadSheet
This article shows how to run a query against MySQL and turn the result into a formatted .xlsx file with PhpSpreadsheet. The column names become the header row,…
July 20, 2026 · PhpSpreadsheet
Import Excel Files Into MySQL In PHP Using PHPSpreadSheet
This article shows how to read an Excel file with PhpSpreadsheet and load its rows into a MySQL table. The first row of the spreadsheet is treated as…
July 19, 2026 · PhpSpreadsheet