Well, you could always generate a CSV file and then use that.
I've not seen a library to do this...then again, I really haven't looked into it that much.
You can try this link to see if it will do what you need
999 Tutorials - Create excel files with php
If this works for you, you could always modify the process and wrap it in your own class.
I hope this helps.