phpexcel-fixer/style-fixer

v0.9.0 2015-07-24 00:53 UTC

This package is not auto-updated.

Last update: 2025-09-13 23:54:36 UTC


README

Build Status

Fixes cell styles broken through PHPExcel read & write process.

Installation

Use composer.

composer install phpexcel-fixer/style-fixer

Usage

<?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