PHP code example of cso / excel2html
1. Go to this page and download the library: Download cso/excel2html library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
cso / excel2html example snippets
$conv = HtmlConverter::fromFilepath(
'tests/assets/test.xlsx',
styleOption: StyleOptions::TABLE_SIZE_FIXED | StyleOptions::WITH_COLUMN_WIDTH | StyleOptions::COLUMN_WIDTH_PROPORTIONAL,
worksheetName:'TestTable',
columns:['A', 'B', 'C', 'D', 'E', 'F'],
scale: 1.1);
echo $conv->getHtml();