summaryrefslogtreecommitdiffstats
path: root/README.md
blob: 0c23f2cb2c5e0756b33958670cd1686bbe82c189 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# PHPExcel.StyleFixer
[![Build Status](https://travis-ci.org/77web/PHPExcelFixer.StyleFixer.svg)](https://travis-ci.org/77web/PHPExcelFixer.StyleFixer)

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