简体   繁体   中英

PHP import/export entities to XML, XLS, CSV…

Is there any PHP library that enables to import and/or export objects (actually Doctrine 2 entities) to various formats like XML, XLS, CSV, etc.

What I'm looking for is a generic semi-automatic solution (not a specific Excel library for example): ie the only thing to configure is the mapping between the file format and the entities.

Like Doctrine 2 maps objects to DB schemas, that would be a library that maps objects to file formats.

theres should be lots out there, but i only can think of one right now, PHPExcel

on its features page it says:

"Output your spreadsheet object to different file formats"

  • Excel 2007 (spreadsheetML)
  • IFF8 (Excel 97 and higher)
  • PHPExcel Serialized Spreadsheet
  • CSV (Comma Separated Values)
  • HTML
  • PDF

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