K
K
kllpff2021-05-12 21:33:54
PHP
kllpff, 2021-05-12 21:33:54

What is suitable for creating Excel spreadsheets?

Hello! I have an extremely small and lightweight PHP project, but don't know what to use to create tables. Somewhere without composer'a in any way, somewhere you need PEAR. Because I am not a backend developer, so I don’t really know any tools, but I need something simple that can be thrown into the project, connected and started using the built-in methods. Please advise.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Denis Yuriev, 2021-05-12
@kllpff

If you need to export to a format that will open excel, while getting the fastest code - export to csv
https://www.php.net/manual/en/function.fputcsv.php
If you need to export to xslx, then from the supported solutions, you can look at this
https://github.com/shuchkin/simplexlsxgen
From solutions that are popular but have not been updated for a long time and, in fact, have already been deprecated
https://github.com/PHPOffice/PHPExcel

UPD:
напали дьяволы
Instead of the latter, look at the supported
https://github.com/PHPOffice/PhpSpreadsheet

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question