diff options
author | 77web <info@77-web.com> | 2015-08-08 16:55:37 +0900 |
---|---|---|
committer | 77web <info@77-web.com> | 2015-08-08 16:55:51 +0900 |
commit | 4b4ecfed3db9d4f6b7db4bbc7ffae3efdedf38b7 (patch) | |
tree | 625f5b20ae2c1ecccb24842e689de3cc788f49a6 | |
parent | ab9d9b1611d7410bf023915bd4b59fe8ba08084b (diff) | |
download | PHPExcelFixer.StyleFixer-origin/HEAD.zip PHPExcelFixer.StyleFixer-origin/HEAD.tar.gz PHPExcelFixer.StyleFixer-origin/HEAD.tar.bz2 |
add minimum doc(fixes #1)HEADorigin/masterorigin/HEADmaster
-rw-r--r-- | README.md | 28 |
1 files changed, 28 insertions, 0 deletions
@@ -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 |