2017 © Pedro Peláez
 

library excel-keys-replacer

A package to replace special labels in Excel files matching array keys.

image

it-poet/excel-keys-replacer

A package to replace special labels in Excel files matching array keys.

  • Friday, March 31, 2017
  • by it-poet
  • Repository
  • 1 Watchers
  • 0 Stars
  • 3 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Use Excel files as templates. This package will replace special labels in Excel files (both xls and xlsx) matching array keys.
Required: phpoffice/phpexcel.
Install via composer:
composer require it-poet/excel-keys-replacer, (*1)

Example:
Insert anywhere in xls_keys.xls in any cells ${key1}$ and ${key2}$., (*2)

$excel = new \ItPoet\ExcelKeysReplacer\Replacer;  
$excel->file('path/to/file/xls_keys.xls');            
$excel->data([  
    'key1' => 'some text',  
    'key2' => '12345',  
]);  
$xls = $excel->replace();  
$writer = new \PHPExcel_Writer_Excel5($xls);  
$writer->save('path/to/file/xls_replaced.xls'); 
 ```        
Optionally (with default values):  
```php
$excel->keyWrapper('${', '}$');  
$excel->sheet(0);

TODO: - multi-row insert to build tables (if key is array)., (*3)

The Versions

31/03 2017

dev-master

9999999-dev

A package to replace special labels in Excel files matching array keys.

  Sources   Download

MIT

The Requires

 

by Avatar it-poet

31/03 2017

0.0.1

0.0.1.0

A package to replace special labels in Excel files matching array keys.

  Sources   Download

MIT

The Requires

 

by Avatar it-poet