Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

anchan42's avatar

Export to Excel

I have a pre-formated Excel sheet and I want to fill it in with data in Laravel. It is basically the standard form that the company uses. The workflow would be:

  1. User fill-in info in the Laravel app.
  2. User download or print off the form with info.

I can get step one working ok but not sure about step 2. In VBA I can open an Excel form and fill in info using named ranges. What package should I use to do that in PHP?

0 likes
5 replies
tangtang's avatar

if you want to export data from table database to excel may you can try this package maatwebsite/excel

1 like
anchan42's avatar

@tangtang Thank you. I had a look at that and read the doc but there is nothing about opening an existing excel file and fill it with data.

anchan42's avatar

Thank you. It looks exactly like what I want. I will try it out.

Please or to participate in this conversation.