Excel/Calc workbook generator with PHP

Você pode ler este post em português também.

I wrote a interesting function: Execute it with a given filename and an array in this format:

[plan1] => Array
[0] => Array
[id] => 1
[name] => Adriano
[1] => Array
[id] => 2
[name] => Rodrigo
[2] => Array
[id] => 3
[name] => Manoel

And the response will be:
Output example
Cool! It’s a generic function, so you can use it with your helper class/functions, etc.

This function use the Spreadsheet_Excel_Writer class from PEAR.

The source code you can get in Github here, so you can be notified about updates.

Opinions will always be welcome.


One thought on “Excel/Calc workbook generator with PHP

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s