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

Abandoned → [phpoffice/phpexcel](/?search=phpoffice%2Fphpexcel)Library[PDF &amp; Document Generation](/categories/documents)

duncan3dc/phpexcel
==================

A simple wrapper around phpexcel

1.3.0(9y ago)271.1k1Apache-2.0PHPPHP ^5.6|^7.0CI failing

Since Jun 3Pushed 8y ago2 watchersCompare

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

READMEChangelogDependencies (2)Versions (8)Used By (0)

phpexcel
========

[](#phpexcel)

A simple wrapper around the PHPExcel library

[![Latest Stable Version](https://camo.githubusercontent.com/3135bc76f8057cd15201f4438492198b2d0941358b07572ad1e901357718630b/68747470733a2f2f706f7365722e707567782e6f72672f64756e63616e3364632f706870657863656c2f76657273696f6e2e737667)](https://packagist.org/packages/duncan3dc/phpexcel)[![Build Status](https://camo.githubusercontent.com/a6f69e0066f273ae4ae7a0e7b38a18eef45b29e26e8ced3a805a29bceffa5c4e/68747470733a2f2f7472617669732d63692e6f72672f64756e63616e3364632f706870657863656c2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/duncan3dc/phpexcel)[![Coverage Status](https://camo.githubusercontent.com/e2abff37b6b419c300296746d5fbc9a7bbc89e5f7275cc39da871b0f5f1a1039/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f64756e63616e3364632f706870657863656c2f62616467652e737667)](https://coveralls.io/github/duncan3dc/phpexcel)

Static Methods
--------------

[](#static-methods)

- read(string $filename\[, mixed $key\]): array - Reads a spreadsheet and converts it's contents to an array (using the PHPExcel toString() method). By default this will return an enumerated array with each element representing one sheet. A specific sheet can be requested by passing the $key argument, either as an integer representing the (zero based) sheet number, or as a string of the sheet name.
- getCellName(int $col, int $row): string - Convert a numeric column number (zero based) and row number into a cell name (eg B3)

Public Methods
--------------

[](#public-methods)

- save(string $filename): null - Calls the save() method on the PHPExcel\_Writer\_Excel2007 class.
- output(string $filename): null - Outputs the spreadsheet to the browser to prompt a download.
- addImage(string $cell, string $path): null - Add an image to the specified cell.
- setCell(string $cell, mixed $value\[, int $style\]): null - Set a cell to a value. The $style parameter can be used to set several styles on the cell, using the following class constants: BOLD ITALIC LEFT RIGHT CENTER

Examples
--------

[](#examples)

The Excel class uses a namespace of duncan3dc

```
use duncan3dc\Excel;
```

---

```
$excel = new Excel();

$excel->setCell("A1","Title", Excel::BOLD | EXCEL::CENTER);

for($i = 1; $i < 10; $i++) {
    $cell = $excel->getCellName($i,1);
    $excel->setCell($cell,"Test " . $i);
}

for($i = 1; $i < 10; $i++) {
    $cell = Excel::getCellName($i,2);
    $excel->setCell($cell,"Value " . $i);
}

$excel->save("/tmp/text.xls");
```

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity26

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity63

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

Recently: every ~207 days

Total

7

Last Release

3516d ago

PHP version history (3 changes)1.0.0PHP &gt;=5.4.0

1.2.0PHP &gt;=5.5.0

1.3.0PHP ^5.6|^7.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/11dc66042513f11d1c99b1e6763f25dca84a3ff31cdbea3972b9b804a3d3d5e9?d=identicon)[duncan3dc](/maintainers/duncan3dc)

---

Top Contributors

[![duncan3dc](https://avatars.githubusercontent.com/u/546811?v=4)](https://github.com/duncan3dc "duncan3dc (28 commits)")

---

Tags

excelSimplePHPExcelspeadsheet

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[arogachev/yii2-excel

ActiveRecord import and export based on PHPExcel for Yii 2 framework

6480.3k1](/packages/arogachev-yii2-excel)[dakota/cake-excel

CakePHP excel generator

2324.9k](/packages/dakota-cake-excel)[phpnt/yii2-export

Yii2 It saves data in xls, csv, word, html, pdf files.

158.9k](/packages/phpnt-yii2-export)

PHPackages © 2026

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