PHPackages                             ms100/excel-export - 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. ms100/excel-export

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

ms100/excel-export
==================

the export Excel library

v1.0(5y ago)09MITPHPPHP ^7.4

Since Jan 31Pushed 5y ago1 watchersCompare

[ Source](https://github.com/MS100/excel-export)[ Packagist](https://packagist.org/packages/ms100/excel-export)[ Docs](https://github.com/MS100/excel-export)[ RSS](/packages/ms100-excel-export/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

说明
--

[](#说明)

基于php扩展 xlswriter，[手册](https://xlswriter-docs.viest.me/) 和 [Pecl](https://pecl.php.net/package/xlswriter)。

提供对excel表格快速导入。

安装
--

[](#安装)

```
composer require ms100/excel-export
```

使用
--

[](#使用)

#### 一个表格一个sheet

[](#一个表格一个sheet)

[见代码](test/test1.php)

#### 一个表格多个sheet

[](#一个表格多个sheet)

[见代码](test/test2.php)

#### 注意事项

[](#注意事项)

- 自定义的format方法可以做加粗、倾斜、改字号、设置数值格式(仅当字段值为整型或浮点型时生效)、改颜色，改边框等等\*\*。
- 插入数据时，字段值为文本，则单元格会被设置为文本格式；插入数值再长，列宽再窄，也不会被显示为科学记数法。

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity53

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

1933d ago

### Community

Maintainers

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

---

Top Contributors

[![ms100](https://avatars.githubusercontent.com/u/13431945?v=4)](https://github.com/ms100 "ms100 (1 commits)")

---

Tags

exportexcelxlsimport

### Embed Badge

![Health badge](/badges/ms100-excel-export/health.svg)

```
[![Health](https://phpackages.com/badges/ms100-excel-export/health.svg)](https://phpackages.com/packages/ms100-excel-export)
```

###  Alternatives

[maatwebsite/excel

Supercharged Excel exports and imports in Laravel

12.7k144.3M712](/packages/maatwebsite-excel)[moonlandsoft/yii2-phpexcel

Exporting PHP to Excel or Importing Excel to PHP

1491.1M16](/packages/moonlandsoft-yii2-phpexcel)[avadim/fast-excel-writer

Lightweight and very fast XLSX Excel Spreadsheet Writer in PHP

2951.2M7](/packages/avadim-fast-excel-writer)[avadim/fast-excel-reader

Lightweight and very fast XLSX Excel Spreadsheet Reader in PHP

104608.4k6](/packages/avadim-fast-excel-reader)[arogachev/yii2-excel

ActiveRecord import and export based on PHPExcel for Yii 2 framework

6480.3k1](/packages/arogachev-yii2-excel)[shuchkin/simplecsv

Parse and retrieve data from CSV files. Export data to CSV.

5192.4k](/packages/shuchkin-simplecsv)

PHPackages © 2026

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