Skip to content

Excel files to PHP array convertor (xls/xlsx), wrapper on catdoc and xlsx2csv

Notifications You must be signed in to change notification settings

caseycs/catdoc_xls

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

catdoc_xls

Build Status

Excel files to PHP array convertor (xls/xlsx), wrapper on catdoc, xls2csv (with few modifications) and xlsx2csv.

Dependencies should be already install: xlsx2csv can be installed via pip, catdoc is available by apt-get.

Usage example:

$Parser = new \CatDocXls\Parser;
$result = $Parser->xls('path/to/file.xls');
print_r($result);

//some xsl files are not parsed via xls2csv binary correct, so you can try python script
$Parser = new \CatDocXls\Parser;
$result = $Parser->xls2('path/to/file.xls', 0);
print_r($result);

$Parser = new \CatDocXls\Parser;
$result = $Parser->xlsx('path/to/file.xlsx');
print_r($result);

See more examples in ParserTest.php

Known issues

About

Excel files to PHP array convertor (xls/xlsx), wrapper on catdoc and xlsx2csv

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published