ElpsySec's avatar

Excel Forms and OOP

I have a controller that accepts an excel upload file, stores the file (creates an entry in the documents table in the db with the path to file), and then extracts data from the excel file using PHPExcel and creates db entries from each from.

This looks really messy. My question is how do you typically go about handing this sort of scripting in OOP where you have to stream in data and parse it.

For example, should I create an Object that extends PHPExcel_IOFactory?

0 likes
1 reply

Please or to participate in this conversation.