PHPackages                             linyuee/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. [Utility &amp; Helpers](/categories/utility)
4. /
5. linyuee/excel

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

linyuee/excel
=============

excel导出工具包

1.0.1(8y ago)057MITPHPPHP &gt;=5.5

Since Jan 2Pushed 8y ago1 watchersCompare

[ Source](https://github.com/linyuee/excel)[ Packagist](https://packagist.org/packages/linyuee/excel)[ RSS](/packages/linyuee-excel/feed)WikiDiscussions master Synced 3d ago

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

PHPExcel工具包
===========

[](#phpexcel工具包)

### 1、安装

[](#1安装)

composer require linyuee/excel

### 2、使用

[](#2使用)

#### 导出数据

[](#导出数据)

```
//导出的数据
$data = array(
            ['id'=>1,'username'=>'test1','phone'=>'18881515151'],
            ['id'=>2,'username'=>'test2','phone'=>'18881515152'],
            ['id'=>3,'username'=>'test3','phone'=>'18881515153'],
        );
//标题
$sheettitle = array(
            'id'=>'ID',
            'username'=>'答题人',
            'phone'=>'联系方式',
        );
//导出的数据和标题数组的key要一致
$excel = new \Linyuee\Excel\Export();
        $excel->setData($data)
            ->setFileName('问卷答题情况')
            ->setTitle($sheettitle)
            ->setStartIndex('B')
            ->setFileExt('csv')  //目前支持csv，xls，xlsx
            ->export();

```

#### 读取文件数据

[](#读取文件数据)

```
$excel = new \Linyuee\Excel\Import();
        $data = $excel->setPath('/disk2/123.xlsx')->read();
        var_dump($data);

```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity59

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

Every ~63 days

Total

2

Last Release

2991d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/20659595?v=4)[linyueb](/maintainers/linyueb)[@linyueb](https://github.com/linyueb)

---

Top Contributors

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

### Embed Badge

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

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

###  Alternatives

[sintret/yii2-gii-adminlte

Yii2 Generator extension for Gii plugin with adminlte and base on dynagrid. upload excel to system to with log upload

209.6k2](/packages/sintret-yii2-gii-adminlte)[padosoft/php-oara

The goal of the Open Affiliate Report Aggregator (OARA) is to develop a set of PHP classes that can download affiliate reports from a number of affiliate networks, and store the data in a common format.

1811.4k1](/packages/padosoft-php-oara)

PHPackages © 2026

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