caseycs/catdoc-xls

PHP wrapper on catdoc util - xls files parser

Installs: 570

Dependents: 0

Suggesters: 0

Security: 0

Stars: 3

Watchers: 2

Forks: 3

Open Issues: 3

Language:Python

dev-master 2016-03-14 05:03 UTC

This package is not auto-updated.

Last update: 2024-05-20 08:59:37 UTC


README

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