PHPackages                             rich-id/excel-generator-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. [PDF &amp; Document Generation](/categories/documents)
4. /
5. rich-id/excel-generator-bundle

ActiveSymfony-bundle[PDF &amp; Document Generation](/categories/documents)

rich-id/excel-generator-bundle
==============================

A excel bundle for Symfony 4.4

v1.0.2(4y ago)0261MITPHPPHP &gt;=7.3

Since Jun 18Pushed 4y ago1 watchersCompare

[ Source](https://github.com/rich-id/excel-generator-bundle)[ Packagist](https://packagist.org/packages/rich-id/excel-generator-bundle)[ RSS](/packages/rich-id-excel-generator-bundle/feed)WikiDiscussions master Synced 5d ago

READMEChangelog (3)Dependencies (12)Versions (6)Used By (0)

[![Logo](.github/excel-generator-bundle.svg)](.github/excel-generator-bundle.svg)

Rich ID Excel Generator Bundle
==============================

[](#rich-id-excel-generator-bundle)

[![Package version](https://camo.githubusercontent.com/e2bbb08418a9954a2455ef61a6c4d7a3ef29becf4d82b415009ee39574d2e5e5/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f726963682d69642f657863656c2d67656e657261746f722d62756e646c65)](https://packagist.org/packages/rich-id/excel-generator-bundle)[![Actions Status](https://github.com/rich-id/excel-generator-bundle/workflows/Tests/badge.svg)](https://github.com/rich-id/excel-generator-bundle/actions)[![Coverage Status](https://camo.githubusercontent.com/4807a4f3ab0c2b31b9da30bee93ac2c73f04476d6c0cc859a4e37101f7a8b109/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f726963682d69642f657863656c2d67656e657261746f722d62756e646c652f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/rich-id/excel-generator-bundle?branch=master)[![Maintainability](https://camo.githubusercontent.com/ef12c714fefe369ac65601450537b1b164ef1f01256a6e3c1c17b00a857d0015/68747470733a2f2f6170692e636f6465636c696d6174652e636f6d2f76312f6261646765732f31343461356536626537636330393764646332632f6d61696e7461696e6162696c697479)](https://codeclimate.com/github/rich-id/excel-generator-bundle/maintainability)[![Symfony 4.4+](https://camo.githubusercontent.com/abfdf93edcbe184e11b56dd7fe84c7d424e0466dd9ee6844db644ba2d29828ab/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f53796d666f6e792d342e342b2d303030303030)](https://camo.githubusercontent.com/abfdf93edcbe184e11b56dd7fe84c7d424e0466dd9ee6844db644ba2d29828ab/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f53796d666f6e792d342e342b2d303030303030)[![PHP 7.3+](https://camo.githubusercontent.com/fc548b9b1a384061b2faa1d794cfbe9c3dfa47844158c002e432df47a217a9a8/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d372e332b2d3835386562622e737667)](https://camo.githubusercontent.com/fc548b9b1a384061b2faa1d794cfbe9c3dfa47844158c002e432df47a217a9a8/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d372e332b2d3835386562622e737667)[![Contributions Welcome](https://camo.githubusercontent.com/9e93e892d0685e1bf7a1d0bd7c8410d6ecf2086a0a7b48dd58a6b96fa556ea2a/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f636f6e747269627574696f6e732d77656c636f6d652d627269676874677265656e2e7376673f7374796c653d666c6174)](https://github.com/rich-id/excel-generator-bundle/issues)[![License](https://camo.githubusercontent.com/7013272bd27ece47364536a221edb554cd69683b68a46fc0ee96881174c4214c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e737667)](LICENSE.md)

Quickly and easily generate complex Excel files hydrated with your own data with style.

Quick start
===========

[](#quick-start)

The Excel is built from 3 different models: the spreadsheet, a sheet and a content.

- The spreadsheet contains only the filename, and a list of sheets
- A sheet has only a name and a list of child
- A child is often a custom class that extends from the ExcelContent class to hydrate the content

This is an example of a custom content that has some children. Any children will take its own row, which is very handy for recursion.

```
use RichId\ExcelGeneratorBundle\Annotation as Excel;
use RichId\ExcelGeneratorBundle\Model\ExcelContent;

/**
 * @Excel\HeaderStyle(color="#FFFFFF", backgroundColor="#C1D9E1", fontSize=18, position=Excel\Style::POSITION_CENTER)
 */
class PersonContent extends ExcelContent
{
    /**
     * @var string
     *
     * @Excel\ContentStyle(color="#000000", fontSize=12, wrapText=true)
     * @Excel\HeaderTitle(title="app.person.firstname")
     */
   public $firstname;

    /**
     * @var string
     *
     * @Excel\ContentStyle(color="#000000", fontSize=12, bold=true, wrapText=true)
     * @Excel\HeaderTitle(title="app.person.lastname")
     */
   public $lastname;

    /**
     * @var string
     *
     * @Excel\ContentStyle(color="#000000", fontSize=10)
     * @Excel\HeaderTitle(title="app.person.age")
     */
   public $age;

   public function __construct(User $user)
   {
        $this->firstname = $user->getFirstname();
        $this->lastname = $user->getLastname();
        $this->age = $user->getAge();

        foreach ($user->getAddresses() as $address) {
            $addressContent = new AddressContent($address);
            $this->addChild($addressContent);
        }
   }
}
```

Table of content
================

[](#table-of-content)

1. [Installation](#1-installation)
2. [Configuration](#2-configuration)
    - [Columns](docs/Columns.md)
    - [Headers](docs/Headers.md)
    - [Styles](docs/Styles.md)
3. [Versioning](#3-versioning)
4. [Contributing](#4-contributing)
5. [Hacking](#5-hacking)
6. [License](#6-license)

1. Installation
===============

[](#1-installation)

This version of the bundle requires Symfony 4.4+ and PHP 7.3+.

```
composer require rich-id/excel-generator-bundle
```

2. Configuration
================

[](#2-configuration)

- [Columns](docs/Columns.md)
- [Headers](docs/Headers.md)
- [Styles](docs/Styles.md)

3. Versioning
=============

[](#3-versioning)

excel-generator-bundle follows [semantic versioning](https://semver.org/). In short the scheme is MAJOR.MINOR.PATCH where

1. MAJOR is bumped when there is a breaking change,
2. MINOR is bumped when a new feature is added in a backward-compatible way,
3. PATCH is bumped when a bug is fixed in a backward-compatible way.

Versions bellow 1.0.0 are considered experimental and breaking changes may occur at any time.

4. Contributing
===============

[](#4-contributing)

Contributions are welcomed! There are many ways to contribute, and we appreciate all of them. Here are some of the major ones:

- [Bug Reports](https://github.com/rich-id/excel-generator-bundle/issues): While we strive for quality software, bugs can happen and we can't fix issues we're not aware of. So please report even if you're not sure about it or just want to ask a question. If anything the issue might indicate that the documentation can still be improved!
- [Feature Request](https://github.com/rich-id/excel-generator-bundle/issues): You have a use case not covered by the current api? Want to suggest a change or add something? We'd be glad to read about it and start a discussion to try to find the best possible solution.
- [Pull Request](https://github.com/rich-id/excel-generator-bundle/pulls): Want to contribute code or documentation? We'd love that! If you need help to get started, GitHub as [documentation](https://help.github.com/articles/about-pull-requests/) on pull requests. We use the ["fork and pull model"](https://help.github.com/articles/about-collaborative-development-models/) were contributors push changes to their personal fork and then create pull requests to the main repository. Please make your pull requests against the `master` branch.

As a reminder, all contributors are expected to follow our [Code of Conduct](CODE_OF_CONDUCT.md).

5. Hacking
==========

[](#5-hacking)

You might use Docker and `docker-compose` to hack the project. Check out the following commands.

```
# Start the project
docker-compose up -d

# Install dependencies
docker-compose exec application composer install

# Run tests
docker-compose exec application bin/phpunit

# Run a bash within the container
docker-compose exec application bash
```

6. License
==========

[](#6-license)

excel-generator-bundle is distributed under the terms of the MIT license.

See [LICENSE](LICENSE.md) for details.

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity50

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

Every ~90 days

Total

4

Last Release

1522d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/6bfb5e4a3dde826e4cd3f92d24fdfbdce1415c77f3edd38fc3420b4988977e13?d=identicon)[HugoDumazeau](/maintainers/HugoDumazeau)

---

Top Contributors

[![NicolasGuilloux](https://avatars.githubusercontent.com/u/4090627?v=4)](https://github.com/NicolasGuilloux "NicolasGuilloux (11 commits)")

---

Tags

bundleexcelsymfony

### Embed Badge

![Health badge](/badges/rich-id-excel-generator-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/rich-id-excel-generator-bundle/health.svg)](https://phpackages.com/packages/rich-id-excel-generator-bundle)
```

###  Alternatives

[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.4k5.6M651](/packages/sylius-sylius)[prestashop/prestashop

PrestaShop is an Open Source e-commerce platform, committed to providing the best shopping cart experience for both merchants and customers.

9.0k15.4k](/packages/prestashop-prestashop)[kimai/kimai

Kimai - Time Tracking

4.6k7.4k1](/packages/kimai-kimai)[sulu/sulu

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

1.3k1.3M152](/packages/sulu-sulu)[ec-cube/ec-cube

EC-CUBE EC open platform.

78527.0k1](/packages/ec-cube-ec-cube)[ibexa/oss

A meta package for installing Ibexa Open Source

19772.4k11](/packages/ibexa-oss)

PHPackages © 2026

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