thecodeisbae / excel-to-csv
A simple excel to Csv package
dev-master
2021-10-21 10:33 UTC
Requires
- phpoffice/phpspreadsheet: ^1.18
This package is auto-updated.
Last update: 2024-06-21 16:16:14 UTC
README
excelToCsv
A simple Excel multisheets file to Csv convertor.
The Class constructor have 3 calls :
new ExcelToCsv($file,$filePath)
new ExcelToCsv($file,$filePath,$delimiter)
new ExcelToCsv($file,$filePath,$delimiter,$savepath)
Basic Usage
require_once('vendor\autoload.php');
use thecodeisbae\ExcelToCsv\ExcelToCsv;
$convert = new ExcelToCsv('sample.xlsx','sample.xlsx');
if($convert->convertExcelToCsv())
echo 'Convertion is ended please check for the root of the project to see files :)';
else
echo 'An error occured check your file extension or your filePath';