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
Set The Worksheet Tab Color In Excel Files In PHP Using PHPSpreadSheet
August 8, 2026
Rotate Text In A Cell In Excel Files In PHP Using PHPSpreadSheet
August 8, 2026
Add Data Bars, Color Scales And Icon Sets In Excel Files In PHP Using PHPSpreadSheet
August 7, 2026
Sort Rows Before Writing An Excel File In PHP Using PHPSpreadSheet
August 7, 2026
Prevent Formula Injection In Excel Exports In PHP Using PHPSpreadSheet
August 7, 2026
Create An Excel Table In PHP Using PHPSpreadSheet
August 6, 2026
Use VLOOKUP In Excel Files In PHP Using PHPSpreadSheet
August 6, 2026
Read Excel Dates Back Into PHP Using PHPSpreadSheet
August 6, 2026
Convert An Excel File To XML In PHP Using PHPSpreadSheet
August 5, 2026
Browse by technique