From 914d9145963edfbba930a13b5bcb9ca11cad3904 Mon Sep 17 00:00:00 2001 From: Buddhism8003 Date: Sun, 13 Oct 2024 16:04:09 +0200 Subject: [PATCH] added readme --- README.md | 46 ++++++++++++++++++++++++++++++++++++++++++++++ composer.json | 2 +- 2 files changed, 47 insertions(+), 1 deletion(-) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..c01bed8 --- /dev/null +++ b/README.md @@ -0,0 +1,46 @@ +

Welcome to Excel2Html 👋

+

+ + License: MIT + +

+ +> 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)_ \ No newline at end of file diff --git a/composer.json b/composer.json index 9424c81..9741288 100644 --- a/composer.json +++ b/composer.json @@ -15,7 +15,7 @@ ], "license": "MIT", "require": { - "phpoffice/phpspreadsheet": "^3.3" + "phpoffice/phpspreadsheet": "^1.4" }, "require-dev": { "phpunit/phpunit": "^11"