PHPackages                             mistericy/excel-writer - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. mistericy/excel-writer

AbandonedArchivedLibrary[Utility &amp; Helpers](/categories/utility)

mistericy/excel-writer
======================

Abstraction of PhpSpreadsheet to write excel files

0.3(7y ago)288MITPHPPHP &gt;=7.2

Since Feb 26Pushed 7y ago1 watchersCompare

[ Source](https://github.com/MisterIcy/excel-writer)[ Packagist](https://packagist.org/packages/mistericy/excel-writer)[ Docs](https://github.com/mistericy/excel-writer)[ RSS](/packages/mistericy-excel-writer/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependencies (6)Versions (4)Used By (0)

ExcelWriter
===========

[](#excelwriter)

[![Scrutinizer Code Quality](https://camo.githubusercontent.com/8484f0e2136e354222c2f3534eb4fe04fcfbec4cadddb1d3e1818392a1564f6b/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f4d69737465724963792f657863656c2d7772697465722f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/MisterIcy/excel-writer/?branch=master)[![Build Status](https://camo.githubusercontent.com/dc6aacaed199052c4d611d4b4f0f236352508da6d8eed86168e21ed3435cc2ed/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f4d69737465724963792f657863656c2d7772697465722f6261646765732f6275696c642e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/MisterIcy/excel-writer/build-status/master)

ExcelWriter is a library that tries to abstract PHPSpreadsheet in order to facilitate the creation of excel reports from arrays and objects

Usage
-----

[](#usage)

To generate a report, you have to create a collection of Properties, that will be used to get values from objects / arrays, and will better format your document. Also, you have to create a generator

```
//Create a generator
$generator = new BasicGenerator();

//Add handlers to the generator
$generator
    ->setHandler(new MetadataHandler())
    ->setNext(new FormatHandler())
    ->setNext(new DataHandler());

//Create a property collection
$properties = new PropertyCollection();

//Create a simple index Property
$properties->addProperty(
    PropertyBuilder::createProperty(IntProperty::class, null, true, '={row}-1')
        ->setTitle('id')
    )
    ->addProperty(
        PropertyBuilder::createProperty(StringProperty::class, 'name')
            ->setTitle('name')
            ->setWidth(30)
        )
    ->addProperty(
        PropertyBuilder::createProperty(IntProperty::class, 'age')
            ->setTitle('age')
            ->setWidth(15)
            ->setCallable(function($d) { return ($dgetData();

$file = $writer->generateFile($data, $filename);
```

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community7

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

Every ~0 days

Total

3

Last Release

2682d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/6999229?v=4)[Alexandros Koutroulis](/maintainers/mistericy)[@MisterIcy](https://github.com/MisterIcy)

---

Top Contributors

[![MisterIcy](https://avatars.githubusercontent.com/u/6999229?v=4)](https://github.com/MisterIcy "MisterIcy (31 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/mistericy-excel-writer/health.svg)

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

###  Alternatives

[craftcms/cms

Craft CMS

3.6k3.6M2.9k](/packages/craftcms-cms)[sylius/sylius

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

8.5k5.9M719](/packages/sylius-sylius)[solspace/craft-freeform

The most flexible and user-friendly form building plugin!

54681.3k17](/packages/solspace-craft-freeform)[easycorp/easyadmin-bundle

Admin generator for Symfony applications

4.3k17.9M379](/packages/easycorp-easyadmin-bundle)[sulu/sulu

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

1.3k1.4M196](/packages/sulu-sulu)[contao/core-bundle

Contao Open Source CMS

1231.6M2.7k](/packages/contao-core-bundle)

PHPackages © 2026

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