PHPackages                             data33/phpexcel-wrapper - 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. data33/phpexcel-wrapper

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

data33/phpexcel-wrapper
=======================

A quick and easy wrapper to make excel exports easier

27632PHP

Since Aug 5Pushed 10y ago1 watchersCompare

[ Source](https://github.com/Data33/phpexcel-wrapper)[ Packagist](https://packagist.org/packages/data33/phpexcel-wrapper)[ RSS](/packages/data33-phpexcel-wrapper/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

phpexcel-wrapper
================

[](#phpexcel-wrapper)

A quick and easy wrapper to make excel exports easier

Example usage
-------------

[](#example-usage)

```
$excel = new Data33\ExcelWrapper\ExcelWrapper();

$excel->setTitle('My first excel file')
		->addRow(['Country', 'Capital'], 'header')
		->addRow(['Sweden', 'Stockholm'])
		->addRow(['Norway', 'Oslo'])
		->save('countries.xlsx');
```

To style specific cells:

```
$excel->setTitle('My first excel file')
		->addRow(['Country', 'Capital'], 'header')
		->addRow([['Europe', 'header']])
		->addRow(['Sweden', 'Stockholm'])
		->addRow([['Africa', 'header']])
		->addRow(['Tunisia', 'Tunis'])
		->save('countries.xlsx');
```

To add custom styles we can give the wrapper PHPExcel style arrays:

```
Data33\ExcelWrapper\ExcelStyle::setStyle('red', [
	'font' => [
		'size' => 10,
		'name' => 'Arial',
		'color' => [
			'rgb' => 'ff0000'
		]
	]
]);

$excel->setTitle('My first excel file')
		->addRow(['Country', 'Capital'], 'header')
		->addRow(['Sweden', ['Stockholm', 'red']])
		->addRow(['Norway', ['Oslo', 'red']])
		->save('countries.xlsx');
```

To output directly to browser for download:

```
$excel->setTitle('My first excel file')
		->addRow(['Country', 'Capital'], 'header')
		->addRow(['Sweden', 'Stockholm'])
		->addRow(['Norway', 'Oslo'])
		->outputToBrowser('countries.xlsx');
```

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

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

---

Top Contributors

[![Data33](https://avatars.githubusercontent.com/u/195278?v=4)](https://github.com/Data33 "Data33 (6 commits)")

### Embed Badge

![Health badge](/badges/data33-phpexcel-wrapper/health.svg)

```
[![Health](https://phpackages.com/badges/data33-phpexcel-wrapper/health.svg)](https://phpackages.com/packages/data33-phpexcel-wrapper)
```

###  Alternatives

[optimistdigital/nova-resizable

Simple Laravel Nova tool to enable column resizing

1818.9k](/packages/optimistdigital-nova-resizable)

PHPackages © 2026

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