PHPackages                             dmoen/super-simple-excel - 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. dmoen/super-simple-excel

ActiveLibary

dmoen/super-simple-excel
========================

Package for creating a simple Excel file from arrays

v1.0.2(8y ago)018MITPHP

Since Oct 2Pushed 8y agoCompare

[ Source](https://github.com/dmoen/super-simple-excel)[ Packagist](https://packagist.org/packages/dmoen/super-simple-excel)[ RSS](/packages/dmoen-super-simple-excel/feed)WikiDiscussions master Synced 2mo ago

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

Super simple excel
==================

[](#super-simple-excel)

Simple package for creating an Excel file from arrays, traversable objects or Eloquent Collections when you dont need advanced configuration on cell level.

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

[](#installation)

This package can be installed via Composer:

```
composer require dmoen/super-simple-excel
```

Usage
-----

[](#usage)

Basic example

```
$writer = ExcelWriter::create()
    ->setHeadings(["Lorem", "Ipsum", "Sit", "Amet"]);

$writer->addContent(["Row1", "Row1", "Row1", "Row1"]);

$writer->addContent(["Row2", "Row2", "Row2", "Row2"])
    ->save("filepath");
```

Also work with Eloquent Collections

```
$writer = ExcelWriter::create()
    ->setHeadings(["Lorem", "Ipsum", "Sit", "Amet"]);
    ->addContent(App\User::all())
    ->save("filepath");
```

If you want to output the file to the browser:

```
$writer = ExcelWriter::create()
    ->setHeadings(["Lorem", "Ipsum", "Sit", "Amet"]);

$writer->addContent(["Row1", "Row1", "Row1", "Row1"]);

$writer->addContent(["Row2", "Row2", "Row2", "Row2"])
    ->output("filename");
```

Multi dimensional array

```
ExcelWriter::create()
    ->setHeadings(["Lorem", "Ipsum", "Sit", "Amet"]);
    ->addContent([
        ["Row1", "Row1", "Row1", "Row1"],
        ["Row2", "Row2", "Row2", "Row2"]
    ])
    ->save("filepath");
```

Default styles can be set for font weight, font size, font type and alignment

```
ExcelWriter::create(["bold" => true, "font" => "Arial", "size" => 20, "align" => "center"]);
```

Styles can also be set for headings or specific row(s)

```
$writer = ExcelWriter::create();

$writer->setHeadings(
    ["Lorem", "Ipsum", "Sit", "Amet"],
    [
        "align" => "right",
        "bold"  => false,
        "size" => 15,
        "font" => "Arial"
    ]);

$writer->addContent(
    [
        ["Dolore", "Ipsum", "Amet", "Sit"],
        ["Dolore", "Ipsum", "Amet", "Sit"]
    ],
    [
        "align" => "right",
        "bold"  => false,
        "size" => 15,
        "font" => "Arial"
    ]
);
```

Sometimes you want some row spaces between the headings and the content rows:

```
$writer = ExcelWriter::create();

$writer->setHeadings(
    ["Lorem", "Ipsum", "Sit", "Amet"], [], 1);
```

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity66

Established project with proven stability

 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

3141d ago

### Community

Maintainers

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

---

Top Contributors

[![dmoen](https://avatars.githubusercontent.com/u/31078956?v=4)](https://github.com/dmoen "dmoen (13 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/dmoen-super-simple-excel/health.svg)

```
[![Health](https://phpackages.com/badges/dmoen-super-simple-excel/health.svg)](https://phpackages.com/packages/dmoen-super-simple-excel)
```

###  Alternatives

[liuggio/excelbundle

This is a Symfony2 Bundle helps you to read and write Excel files (including pdf, xlsx, odt), thanks to the PHPExcel library

3776.4M10](/packages/liuggio-excelbundle)[wisembly/excelant

72158.3k](/packages/wisembly-excelant)[arogachev/yii2-excel

ActiveRecord import and export based on PHPExcel for Yii 2 framework

6480.3k1](/packages/arogachev-yii2-excel)[archon/dataframe

Archon: PHP Data Analysis Library

9824.2k1](/packages/archon-dataframe)[portphp/excel

Excel reader and writer for Port

26259.9k](/packages/portphp-excel)[netgen/information-collection-bundle

Information collection alike feature for Ibexa Platform

1945.1k8](/packages/netgen-information-collection-bundle)

PHPackages © 2026

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