added readme
This commit is contained in:
parent
4c779797bb
commit
914d914596
|
|
@ -0,0 +1,46 @@
|
||||||
|
<h1 align="center">Welcome to Excel2Html 👋</h1>
|
||||||
|
<p>
|
||||||
|
<a href="#" target="_blank">
|
||||||
|
<img alt="License: MIT" src="https://img.shields.io/badge/License-MIT-yellow.svg" />
|
||||||
|
</a>
|
||||||
|
</p>
|
||||||
|
|
||||||
|
> Genrate HTML markup from an Excel worksheet that looks perfectly alike
|
||||||
|
|
||||||
|
## Install
|
||||||
|
|
||||||
|
```sh
|
||||||
|
composer require cso/excel2html
|
||||||
|
```
|
||||||
|
|
||||||
|
## Usage
|
||||||
|
|
||||||
|
```php
|
||||||
|
$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
|
||||||
|
|
||||||
|
```sh
|
||||||
|
./vendor/bin/phpunit --testdox tests
|
||||||
|
```
|
||||||
|
|
||||||
|
## Author
|
||||||
|
|
||||||
|
👤 **Sebastian Lindemeier**
|
||||||
|
|
||||||
|
* Github: [@cso-lindi](https://github.com/cso-lindi)
|
||||||
|
|
||||||
|
## Show your support
|
||||||
|
|
||||||
|
Give a ⭐️ if this project helped you!
|
||||||
|
|
||||||
|
***
|
||||||
|
_This README was generated with ❤️ by [readme-md-generator](https://github.com/kefranabg/readme-md-generator)_
|
||||||
|
|
@ -15,7 +15,7 @@
|
||||||
],
|
],
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"require": {
|
"require": {
|
||||||
"phpoffice/phpspreadsheet": "^3.3"
|
"phpoffice/phpspreadsheet": "^1.4"
|
||||||
},
|
},
|
||||||
"require-dev": {
|
"require-dev": {
|
||||||
"phpunit/phpunit": "^11"
|
"phpunit/phpunit": "^11"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue