qronicle / qexcel
Fast reader modification of PHPExcel
Installs: 1 392
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Requires
- php: >=5.3.0
README
#QExcel
The Qronicle (or Quick - still haven't really decided) Excel library is an experimental Excel reader based on PHPExcel (http://phpexcel.codeplex.com/). It uses less resources by only looking at the actual content, ignoring styles etc.
This library should be helpful when importing excel files where the styling is not important. Keep in mind that it will only ever contain the Excel readers.
Progress
Basic functionality is all in place. The optimized Excel5, Excel2003XML, Excel2007 and CSV Readers are mostly ready. Everything is tied together by the QExcel class (that can be used as a replacement to PHPExcel's IO factory).
Up next is adding more documentation, example files (the test files I use now are not open for publication) and extending the index file with more sweetness to test out. If everything works I'll probably add the OO and other Readers from PHPExcel. I also need to check for updates on the PHPExcel front, should they have improved their readers.
Composer installation
composer require qronicle/qexcel
Getting started
// Always include the QExcel file // This will start the autoloader and you will probably use the QExcel class to start as well require_once('library/QExcel/QExcel.php'); // The workbook file $filename = 'files/test.xls'; // Load the file into a QExcel_Workbook object $workbook = QExcel::loadWorkbook($filename);
Performance
Tested with a file containing 2400 lines and 22 columns (mostly text and number fields). PHPExcel used setReadDataOnly as true.
Note that these are quickly made tests and that they are just an indication of the amount of memory and time that is won by ignoring the (for this library) unimportant data.