cso / excel2html
Convert Excel-sheets to their equivalent HTML-table representation
Installs: 6
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Language:HTML
Requires
- phpoffice/phpspreadsheet: ^1.4
Requires (Dev)
- phpunit/phpunit: ^11
README
Genrate HTML markup from an Excel worksheet that looks perfectly alike
Install
composer require cso/excel2html
Usage
$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();
Run tests
./vendor/bin/phpunit --testdox tests
Author
👤 Sebastian Lindemeier
- Github: @cso-lindi
Show your support
Give a ⭐️ if this project helped you!
This README was generated with ❤️ by readme-md-generator