diff options
-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 |