PHPSpreadsheet · Google Sheets API · Excel
Spreadsheets, driven by code.
Hands-on PHP tutorials for working with Excel and Google Sheets — read and
write .xlsx, convert files to JSON, stream downloads in the
browser, and insert images, formulas, and styling. Every guide ships with
code you can copy, run, and adapt.
Key methods
IOFactory::load()
PhpSpreadsheet
getActiveSheet()
PhpSpreadsheet
fromArray()
PhpSpreadsheet
getCalculatedValue()
PhpSpreadsheet
save('php://output')
PhpSpreadsheet
spreadsheets_values->get()
Google Sheets
spreadsheets_values->update()
Google Sheets
spreadsheets->create()
Google Sheets
json_encode()
PHP
header()
PHP
Latest articles
Write SQL In A Cell With The Google Sheets QUERY Function
August 13, 2026
Clear The Formula Calculation Cache In PHP Using PHPSpreadSheet
August 13, 2026
Control Cell Data Types With Value Binders In PHP Using PHPSpreadSheet
August 13, 2026
Import An Excel File Into Google Sheets Using Google Sheets API PHP Client
August 12, 2026
Delete Google Sheets Rows And Clear Ranges Using Google Sheets API PHP Client
August 12, 2026
Copy A Worksheet Into Another Excel File In PHP Using PHPSpreadSheet
August 11, 2026
Append Google Sheets Rows Using Google Sheets API PHP Client
August 11, 2026
Read Google Sheets Cells Using Google Sheets API PHP Client
August 11, 2026
Authenticate With A Service Account Using Google Sheets API PHP Client
August 10, 2026
Browse by technique