PHPackages                             tanghao2018/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. [File &amp; Storage](/categories/file-storage)
4. /
5. tanghao2018/phpexcel

ActiveLibrary[File &amp; Storage](/categories/file-storage)

tanghao2018/phpexcel
====================

PHP library to create excel

1.8.1(9y ago)0171LGPLPHPPHP &gt;=5.3.0

Since Dec 21Pushed 9y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (2)Used By (0)

phpoffice
=========

[](#phpoffice)

PHP 生成Excel文件

只是简单的把phpoffice/phpexcel 1.8.1包装成composer规范

用法
==

[](#用法)

use phpexcel\\PHPExcel; use phpexcel\\phpexcel\\PHPExcel\_IOFactory;

$objPHPExcel = new PHPExcel();

// Set document properties $objPHPExcel-&gt;getProperties()-&gt;setCreator("Maarten Balliauw") -&gt;setLastModifiedBy("Maarten Balliauw") -&gt;setTitle("Office 2007 XLSX Test Document") -&gt;setSubject("Office 2007 XLSX Test Document") -&gt;setDescription("Test document for Office 2007 XLSX, generated using PHP classes.") -&gt;setKeywords("office 2007 openxml php") -&gt;setCategory("Test result file");

// Add some data $objPHPExcel-&gt;setActiveSheetIndex(0) -&gt;setCellValue('A1', 'Hello') -&gt;setCellValue('B2', 'world!') -&gt;setCellValue('C1', 'Hello') -&gt;setCellValue('D2', 'world!');

// Miscellaneous glyphs, UTF-8 $objPHPExcel-&gt;setActiveSheetIndex(0) -&gt;setCellValue('A4', 'Miscellaneous glyphs') -&gt;setCellValue('A5', '中国人');

// Rename worksheet $objPHPExcel-&gt;getActiveSheet()-&gt;setTitle('Simple');

// Set active sheet index to the first sheet, so Excel opens this as the first sheet $objPHPExcel-&gt;setActiveSheetIndex(0);

// Redirect output to a client’s web browser (Excel2007) header('Content-Type: application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'); header('Content-Disposition: attachment;filename="01simple.xlsx"'); header('Cache-Control: max-age=0'); // If you're serving to IE 9, then the following may be needed header('Cache-Control: max-age=1');

// If you're serving to IE over SSL, then the following may be needed header ('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); // Date in the past header ('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT'); // always modified header ('Cache-Control: cache, must-revalidate'); // HTTP/1.1 header ('Pragma: public'); // HTTP/1.0

//echo "excel2007"; $objWriter = PHPExcel\_IOFactory::createWriter2007($objPHPExcel, 'Excel2007'); $objWriter-&gt;save('php://output');

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity58

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

Unknown

Total

1

Last Release

3432d ago

### Community

Maintainers

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

---

Top Contributors

[![rainbow2019s](https://avatars.githubusercontent.com/u/20558112?v=4)](https://github.com/rainbow2019s "rainbow2019s (3 commits)")

### Embed Badge

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

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

###  Alternatives

[knplabs/gaufrette

PHP library that provides a filesystem abstraction layer

2.5k39.8M123](/packages/knplabs-gaufrette)[google/cloud-storage

Cloud Storage Client for PHP

34390.8M125](/packages/google-cloud-storage)[illuminate/filesystem

The Illuminate Filesystem package.

15261.6M2.6k](/packages/illuminate-filesystem)[superbalist/flysystem-google-storage

Flysystem adapter for Google Cloud Storage

26320.6M30](/packages/superbalist-flysystem-google-storage)[creocoder/yii2-flysystem

The flysystem extension for the Yii framework

2931.7M62](/packages/creocoder-yii2-flysystem)[flowjs/flow-php-server

PHP library for handling chunk uploads. Works with flow.js html5 file uploads.

2451.6M15](/packages/flowjs-flow-php-server)

PHPackages © 2026

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