PHPackages                             honray/tp5-excel - 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. honray/tp5-excel

ActiveLibrary

honray/tp5-excel
================

excel package for thinkphp5

7412PHP

Since Mar 31Pushed 9y agoCompare

[ Source](https://github.com/honraytech/honray-excel)[ Packagist](https://packagist.org/packages/honray/tp5-excel)[ RSS](/packages/honray-tp5-excel/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

honray-excel
============

[](#honray-excel)

thinkphp5 系统生成excel函数

安装
--

[](#安装)

> composer require honray/tp5-excel

\##使用

\###在后端生成excel,并返回路径

\#####执行方法export\_excel($data, $title, $version = '2007', $savefile = '')

- 在服务器生成excel表并-返回路径
-
- ---
- @param string $data 需要导出的数据，必须
- @param array() $title 导出的excel表的表头信息，必须
- @param string $version 导出的excel信息，默认为2007，可选
- @param string $savefile 导出的excel保存的名字，可选(需要英文，字符串)
- @param array() $width 导出的excel保存的宽度，必选，最好填写,具体到每列的宽度如$width = array('A'=&gt;10,'B'=&gt;10,'C'=&gt;25,'D'=&gt;20,'E'=&gt;25,'F'=&gt;25,'G'=&gt;25,'H'=&gt;25);
- @param array(fontfamily,size,color,bold) $font 导出的excel表头的样式,可选(已废弃，损耗性能)
- @param string $sheetname 导出的excel表的名字，默认为“shee1”，可选
- 返回值:文件名称$url:如lession.xls
- ---

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community7

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/22bf6ed440efe7bb893fe069ae45a3d99da2c135eb41b450225305b7a33b2cf7?d=identicon)[honraytech](/maintainers/honraytech)

---

Top Contributors

[![honraytech](https://avatars.githubusercontent.com/u/24616643?v=4)](https://github.com/honraytech "honraytech (18 commits)")

### Embed Badge

![Health badge](/badges/honray-tp5-excel/health.svg)

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

PHPackages © 2026

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