PHPackages                             vielhuber/excelhelper - 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. vielhuber/excelhelper

ActiveLibrary[PDF &amp; Document Generation](/categories/documents)

vielhuber/excelhelper
=====================

A super simple excel wrapper in php.

1.3.1(1w ago)11.1k1MITPHPPHP &gt;=7.4CI passing

Since Dec 11Pushed 1w ago1 watchersCompare

[ Source](https://github.com/vielhuber/excelhelper)[ Packagist](https://packagist.org/packages/vielhuber/excelhelper)[ RSS](/packages/vielhuber-excelhelper/feed)WikiDiscussions main Synced 1w ago

READMEChangelogDependencies (4)Versions (33)Used By (1)

[![build status](https://github.com/vielhuber/excelhelper/actions/workflows/ci.yml/badge.svg)](https://github.com/vielhuber/excelhelper/actions)[![GitHub Tag](https://camo.githubusercontent.com/a2c7d80e0329175a7ec51001af51bbccff2fd2309488e1ee60ed53bed28c4134/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f7461672f7669656c68756265722f657863656c68656c706572)](https://github.com/vielhuber/excelhelper/tags)[![Code Style](https://camo.githubusercontent.com/1540f8ce219727155ab62506c77b818b720421c22c4cf0b18a5f160942132e2d/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f636f64655f7374796c652d7073722d2d31322d6666363962342e737667)](https://www.php-fig.org/psr/psr-12/)[![License](https://camo.githubusercontent.com/e2ba8be1e318a19ff473a357eda3b69aad6f08a45c34f7bf834b6919c1352cbb/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f7669656c68756265722f657863656c68656c706572)](https://github.com/vielhuber/excelhelper/blob/main/LICENSE.md)[![Last Commit](https://camo.githubusercontent.com/0b3ee6d8251c8db25ea266b6923485b305db4cab0762289e6ac232149f39d5db/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6173742d636f6d6d69742f7669656c68756265722f657863656c68656c706572)](https://github.com/vielhuber/excelhelper/commits)[![PHP Version Support](https://camo.githubusercontent.com/1e46114e47043f7f239c8e936ecaae2ccb57e00864f075d264c7e9d1c4f9034d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f7669656c68756265722f657863656c68656c706572)](https://packagist.org/packages/vielhuber/excelhelper)[![Packagist Downloads](https://camo.githubusercontent.com/09977328351ddcc17bb43c07bd8074eda7ab5aacbebd64e9398808dbc66dcbf4/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7669656c68756265722f657863656c68656c706572)](https://packagist.org/packages/vielhuber/excelhelper)

📗 excelhelper 📗
===============

[](#-excelhelper-)

excelhelper is a helper for excel.

with its help you can write and read to xlsx/xls/csv in php in a very simple, webdev-friendly way. it also handles issues with big numbers and other quirks.

installation
------------

[](#installation)

install once with [composer](https://getcomposer.org/):

```
composer require vielhuber/excelhelper

```

then add this to your files:

```
require __DIR__ . '/vendor/autoload.php';
use vielhuber\excelhelper\excelhelper;
```

usage
-----

[](#usage)

### reading

[](#reading)

```
$array = excelhelper::read([
    'file' => 'file.xlsx',
    'first_line' => true, // true|false
    'format_cells' => false, // false|true
    'all_sheets' => false, // false|true
    'friendly_keys' => false // false|true
    'titles_as_keys' => false // false|true
]);
```

### writing

[](#writing)

```
excelhelper::write([
    'file' => 'file.xlsx', // can write xlsx, xls and csv; if null, a filename is suggested
    'engine' => 'phpspreadsheet',
    'output' => 'save', // save|download
    'style_header' => true, // true|false
    'autosize_columns' => true, // true|false
    'auto_borders' => true, // true|false
    'remove_empty_cols' => false, // true|false
    'data' => [
        ['a1', 'b1', 'c1'],
        ['a2', 'b2', 'c2'],
        [
            [
                'value' => 'a3',
                'background-color' => '#ff0000',
                'color' => '#ffffff',
                'font-weight' => 'bold',
                'border' => '1px solid #000',
                'text-align' => 'center'
            ],
            [
                'value' => 'b3',
                'background-color' => '#ff0000',
                'color' => '#ffffff',
                'font-weight' => 'bold',
                'border' => '1px solid #000',
                'text-align' => 'left'
            ],
            [
                'value' => 'c3',
                'background-color' => '#ff0000',
                'color' => '#ffffff',
                'font-weight' => 'bold',
                'border' => '1px solid #000',
                'text-align' => 'right'
            ]
        ]
    ]
]);
```

```
excelhelper::write([
    'file' => 'file.xlsx',
    'engine' => 'phpspreadsheet',
    'output' => 'save',
    'data' => [
        'Sheet 1' => [['a1', 'b1', 'c1'], ['a2', 'b2', 'c2']],
        'Sheet 2' => [['a1', 'b1', 'c1'], ['a2', 'b2', 'c2']],
        'Sheet 3' => [['a1', 'b1', 'c1'], ['a2', 'b2', 'c2']]
    ]
]);
```

###  Health Score

53

—

FairBetter than 97% of packages

Maintenance98

Actively maintained with recent releases

Popularity19

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity72

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 ~87 days

Recently: every ~10 days

Total

32

Last Release

13d ago

PHP version history (2 changes)1.0.0PHP &gt;=5.6

1.1.9PHP &gt;=7.4

### Community

Maintainers

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

---

Top Contributors

[![vielhuber](https://avatars.githubusercontent.com/u/3183737?v=4)](https://github.com/vielhuber "vielhuber (56 commits)")

---

Tags

excelphp

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/vielhuber-excelhelper/health.svg)

```
[![Health](https://phpackages.com/badges/vielhuber-excelhelper/health.svg)](https://phpackages.com/packages/vielhuber-excelhelper)
```

###  Alternatives

[maatwebsite/excel

Supercharged Excel exports and imports in Laravel

12.7k144.3M712](/packages/maatwebsite-excel)[phpoffice/phppresentation

PHPPresentation - Read, Create and Write Presentations documents in PHP

1.4k2.4M25](/packages/phpoffice-phppresentation)[kartik-v/yii2-export

A library to export server/db data in various formats (e.g. excel, html, pdf, csv etc.)

1623.1M35](/packages/kartik-v-yii2-export)[moonlandsoft/yii2-phpexcel

Exporting PHP to Excel or Importing Excel to PHP

1491.1M16](/packages/moonlandsoft-yii2-phpexcel)[yidas/phpspreadsheet-helper

PHP Excel Helper - Write and read Spreadsheet with easy way based on PhpSpreadsheet

383144.5k3](/packages/yidas-phpspreadsheet-helper)[yectep/phpspreadsheet-bundle

A Symfony bundle to integrate with PHPOffice's PhpSpreadsheet library

562.3M4](/packages/yectep-phpspreadsheet-bundle)

PHPackages © 2026

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