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 2mo 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 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity47

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

2629d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2641eef989e48941d7465d5f50f15d245530866df78c044dc907b191f6dca202?d=identicon)[mistericy](/maintainers/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

[winzou/state-machine

A very lightweight yet powerful PHP state machine

52113.7M18](/packages/winzou-state-machine)[civicrm/civicrm-core

Open source constituent relationship management for non-profits, NGOs and advocacy organizations.

728272.9k17](/packages/civicrm-civicrm-core)[solspace/craft-freeform

The most flexible and user-friendly form building plugin!

52664.9k12](/packages/solspace-craft-freeform)[hirethunk/verbs

An event sourcing package that feels nice.

513162.9k6](/packages/hirethunk-verbs)[in2code/powermail

Powermail is a well-known, editor-friendly, powerful and easy to use mailform extension for TYPO3 with a lots of features

982.5M38](/packages/in2code-powermail)[cognesy/instructor-php

The complete AI toolkit for PHP: unified LLM API, structured outputs, agents, and coding agent control

310107.9k1](/packages/cognesy-instructor-php)

PHPackages © 2026

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