简体   繁体   中英

How can I read an Excel file using Zend framework?

如何使用Zend框架读取Excel文件?

尝试使用PHPExcel( http://phpexcel.codeplex.com/ ),您可以读写不同的文件格式,例如Excel 2007,PDF,HTML,

There is no library in Zend Framework (currently v1.10) which can read or write Microsoft Excel files. There is only a Zend_Service to read Google Spreadsheets . You can use PHPExcel like Lucas suggested or use the PEAR package. Because Zend Framework is a glue framework, you can use both side by side with ZF.

The Google Spreadsheets data API allows client applications to view and update Spreadsheets content in the form of Google data API feeds. Your client application can request a list of a user's spreadsheets, edit or delete content in an existing Spreadsheets worksheet, and query the content in an existing Spreadsheets worksheet.

There's a fairly good article on this precise subject within the Zend developer zone - " Reading and Writing Spreadsheets with PHP ".

That said, you're likely to need some additional PEAR modules, although that's a fairly low entry requirement it has to be said.

If you want to use PHPExcel, here is something to get you started

The only other resources I am using at the moment are its documentation. Not much info on the web.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM