PHPackages                             recranet/twig-spreadsheet-bundle - 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. recranet/twig-spreadsheet-bundle

ActiveSymfony-bundle[Templating &amp; Views](/categories/templating)

recranet/twig-spreadsheet-bundle
================================

This Symfony bundle integrates PhpSpreadsheet into Symfony using Twig.

2.4.1(1mo ago)4111.3k↓26.4%MITPHPPHP ^8.1CI passing

Since Jun 17Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/recranet/TwigSpreadsheetBundle)[ Packagist](https://packagist.org/packages/recranet/twig-spreadsheet-bundle)[ Docs](https://github.com/recranet/TwigSpreadsheetBundle)[ RSS](/packages/recranet-twig-spreadsheet-bundle/feed)WikiDiscussions master Synced yesterday

READMEChangelog (7)Dependencies (37)Versions (10)Used By (0)

TwigSpreadsheetBundle
=====================

[](#twigspreadsheetbundle)

[![Build Status](https://github.com/recranet/TwigSpreadsheetBundle/actions/workflows/php.yml/badge.svg?branch=master)](https://github.com/recranet/TwigSpreadsheetBundle/actions)

This Symfony bundle integrates PhpSpreadsheet into Symfony using Twig.

Features
--------

[](#features)

- Easy to use Twig integration including `macro` and `include` support
- Use existing spreadsheet files as templates. The easiest way to customize fonts, colors, etc.
- ...

Supported output formats
------------------------

[](#supported-output-formats)

The supported output formats are directly based on the capabilities of PhpSpreadsheet.

- Open Document Format/OASIS (.ods)
- Office Open XML (.xlsx) Excel 2007 and above
- BIFF 8 (.xls) Excel 97 and above
- CSV
- PDF (using DOMPDF, TCPDF or mPDF)

Software requirements
---------------------

[](#software-requirements)

The following software is required to use PhpSpreadsheet/TwigSpreadsheetBundle.

**Required by this bundle:**

- PHP 8.1 or newer
- Symfony 6.4 or 7.0 or newer

**Required by PhpSpreadsheet:**

- PHP extension php\_zip enabled
- PHP extension php\_xml enabled
- PHP extension php\_fileinfo enabled
- PHP extension php\_gd2 enabled (optional, but required for exact calculation of the column width)

Documentation
-------------

[](#documentation)

The source of the documentation is stored in the Resources/doc/ folder in this bundle:

[Resources/doc/index.rst](https://github.com/Recranet/TwigSpreadsheetBundle/blob/master/src/Resources/doc/index.rst)

You can find a prettier version on readthedocs.org:

[https://twigspreadsheetbundle.readthedocs.org](https://twigspreadsheetbundle.readthedocs.org/)

Installation
------------

[](#installation)

All the installation instructions are located in the documentation.

License
-------

[](#license)

This bundle is under the MIT license. See the complete license in the bundle:

[Resources/meta/LICENSE](https://github.com/Recranet/TwigSpreadsheetBundle/blob/master/LICENSE)

###  Health Score

60

—

FairBetter than 98% of packages

Maintenance93

Actively maintained with recent releases

Popularity36

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity78

Established project with proven stability

 Bus Factor1

Top contributor holds 69.4% 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

Every ~362 days

Recently: every ~155 days

Total

9

Last Release

37d ago

Major Versions

1.1 → 2.02022-09-05

PHP version history (3 changes)1.0PHP &gt;=7.0

2.0PHP ^7.4|^8.0

2.2PHP ^8.1

### Community

Maintainers

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

---

Top Contributors

[![MewesK](https://avatars.githubusercontent.com/u/1128271?v=4)](https://github.com/MewesK "MewesK (277 commits)")[![raymondelooff](https://avatars.githubusercontent.com/u/9716806?v=4)](https://github.com/raymondelooff "raymondelooff (110 commits)")[![technetium](https://avatars.githubusercontent.com/u/1395591?v=4)](https://github.com/technetium "technetium (2 commits)")[![davidromani](https://avatars.githubusercontent.com/u/698779?v=4)](https://github.com/davidromani "davidromani (1 commits)")[![fdicioccio](https://avatars.githubusercontent.com/u/3645606?v=4)](https://github.com/fdicioccio "fdicioccio (1 commits)")[![guiyomh](https://avatars.githubusercontent.com/u/363162?v=4)](https://github.com/guiyomh "guiyomh (1 commits)")[![aserratorta](https://avatars.githubusercontent.com/u/12971681?v=4)](https://github.com/aserratorta "aserratorta (1 commits)")[![kgilden](https://avatars.githubusercontent.com/u/918599?v=4)](https://github.com/kgilden "kgilden (1 commits)")[![malheirosrafa](https://avatars.githubusercontent.com/u/1307312?v=4)](https://github.com/malheirosrafa "malheirosrafa (1 commits)")[![odinsey](https://avatars.githubusercontent.com/u/840089?v=4)](https://github.com/odinsey "odinsey (1 commits)")[![kbaczkiewicz](https://avatars.githubusercontent.com/u/17267724?v=4)](https://github.com/kbaczkiewicz "kbaczkiewicz (1 commits)")[![chebbix](https://avatars.githubusercontent.com/u/3942104?v=4)](https://github.com/chebbix "chebbix (1 commits)")[![darookee](https://avatars.githubusercontent.com/u/104579?v=4)](https://github.com/darookee "darookee (1 commits)")

---

Tags

symfonytwigexcelspreadsheetPHPExcelphpspreadsheet

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan, Rector

Type Coverage Yes

### Embed Badge

![Health badge](/badges/recranet-twig-spreadsheet-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/recranet-twig-spreadsheet-bundle/health.svg)](https://phpackages.com/packages/recranet-twig-spreadsheet-bundle)
```

###  Alternatives

[easycorp/easyadmin-bundle

Admin generator for Symfony applications

4.3k17.9M386](/packages/easycorp-easyadmin-bundle)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

585.6M574](/packages/shopware-core)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.4M203](/packages/sulu-sulu)[pimcore/pimcore

Content &amp; Product Management Framework (CMS/PIM/E-Commerce)

3.8k3.8M508](/packages/pimcore-pimcore)[shopware/platform

The Shopware e-commerce core

3.4k1.5M3](/packages/shopware-platform)[open-dxp/opendxp

Content &amp; Product Management Framework (CMS/PIM)

9421.6k61](/packages/open-dxp-opendxp)

PHPackages © 2026

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