fuwa / xlsx-read
read big xlsx
Installs: 14
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/fuwa/xlsx-read
Requires (Dev)
- prewk/xml-string-streamer: ^0.11.0
README
###Simply read large files
$oXLSXRead = new \Fuwa\XLSXRead(); $oCallback = function ($_v, $row, $con) { if ($row < 6) return 'continue'; if (empty($_v['id'])) return [false, 'Number cannot be empty!']; }; $aConfig = ['path' => $this->getTempCacheDir() . 'csv/sf.xlsx', 'aKey' => ['id' => 'Serial number', 'comtime' => 'Completion time',], 'format' => ['comtime' => 'time'], 'aSheet' => ['progress'], 'callback' => $oCallback, 'titleRows' => 2,]; $flag = $oXLSXRead->read($aConfig); if (false === $flag){ $oXLSXRead->getMessage(); }