summaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
author77web <info@77-web.com>2015-08-08 16:55:37 +0900
committer77web <info@77-web.com>2015-08-08 16:55:51 +0900
commit4b4ecfed3db9d4f6b7db4bbc7ffae3efdedf38b7 (patch)
tree625f5b20ae2c1ecccb24842e689de3cc788f49a6 /README.md
parentab9d9b1611d7410bf023915bd4b59fe8ba08084b (diff)
downloadPHPExcelFixer.StyleFixer-origin/master.zip
PHPExcelFixer.StyleFixer-origin/master.tar.gz
PHPExcelFixer.StyleFixer-origin/master.tar.bz2
add minimum doc(fixes #1)HEADorigin/masterorigin/HEADmaster
Diffstat (limited to 'README.md')
-rw-r--r--README.md28
1 files changed, 28 insertions, 0 deletions
diff --git a/README.md b/README.md
index 2cea68a..0c23f2c 100644
--- a/README.md
+++ b/README.md
@@ -3,3 +3,31 @@
Fixes cell styles broken through [PHPExcel](https://github.com/phpoffice/phpexcel) read & write process.
+## Installation
+
+Use composer.
+
+```
+composer install phpexcel-fixer/style-fixer
+```
+
+## Usage
+
+```php
+<?php
+
+use PHPExcelFixer\StyleFixer\StyleFixer;
+use PHPExcelFixer\StyleFixer\Plugin\CellStyleFixer;
+use PHPExcelFixer\StyleFixer\Plugin\ConditionalFormatFixer;
+
+$templatePath = '/path/to/template.xlsx';
+$outputPath = '/path/to/output.xlsx';
+
+$fixer = new StyleFixer([new CellStyleFixer(), new ConditionlFormatFixer()]);
+$fixer->execute($outputPath, $templatePath);
+```
+
+## Feedback
+
+If you find any issue, please let me know.
+https://github.com/77web/PHPExcelFixer.StyleFixer/issues