PHPackages                             silverslice/excel-template - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Templating &amp; Views](/categories/templating)
4. /
5. silverslice/excel-template

ActiveLibrary[Templating &amp; Views](/categories/templating)

silverslice/excel-template
==========================

Replace variables in xlsx document

v0.1.0(9y ago)33.7kMITPHPPHP &gt;=5.4

Since Nov 1Pushed 9y ago5 watchersCompare

[ Source](https://github.com/silverslice/excel-template)[ Packagist](https://packagist.org/packages/silverslice/excel-template)[ RSS](/packages/silverslice-excel-template/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (1)Versions (2)Used By (0)

Easy tool for replacing variables in xlsx documents
===================================================

[](#easy-tool-for-replacing-variables-in-xlsx-documents)

Why
---

[](#why)

If you try to create a simple template in PHPExcel, insert some data and save it as a new file, you will see that conditional formatting is missing. PHPExcel is not a library for editing workbook files: you're not using PHPExcel to change only one string in a file and save it in the same state.

Install
-------

[](#install)

`composer require silverslice/excel-template`

Usage
-----

[](#usage)

Place variables in your xlsx-document as {foo}. Then replace them with `replace` method.

```
use Silverslice\ExcelTemplate\Template;

require __DIR__ . '/vendor/autoload.php';

$template = new Template();

// open file
$template->open('test.xlsx')

    // replace one variable to another
    ->replace('one', 'two')

    // replace once more
    ->replace('foo', 'bar')

    // save document
    ->save('test.xlsx');
```

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

3532d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/b17dfd96904635c115d4a2bdd334a63454336ed0dcd3f02290a39bca1dce44bd?d=identicon)[silverslice](/maintainers/silverslice)

---

Top Contributors

[![silverslice](https://avatars.githubusercontent.com/u/6722542?v=4)](https://github.com/silverslice "silverslice (1 commits)")

---

Tags

excelxlsxtemplate

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/silverslice-excel-template/health.svg)

```
[![Health](https://phpackages.com/badges/silverslice-excel-template/health.svg)](https://phpackages.com/packages/silverslice-excel-template)
```

###  Alternatives

[phpoffice/phpword

PHPWord - A pure PHP library for reading and writing word processing documents (OOXML, ODF, RTF, HTML, PDF)

7.6k39.0M235](/packages/phpoffice-phpword)[rize/uri-template

PHP URI Template (RFC 6570) supports both expansion &amp; extraction

435149.5M63](/packages/rize-uri-template)[anourvalar/office

Generate documents from existing Excel &amp; Word templates | Export tables to Excel (Grids)

24095.2k](/packages/anourvalar-office)[alhimik1986/php-excel-templator

PHP Spreadsheet extension for generating excel files from template

351360.8k1](/packages/alhimik1986-php-excel-templator)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
