PHPackages                             rekkles/easyexcel - 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. rekkles/easyexcel

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

rekkles/easyexcel
=================

Find A Simple Way To Operate Excel.

1.0.0(8y ago)215372[2 issues](https://github.com/justcodingnobb/EasyExcel/issues)MITPHPPHP &gt;=5.3.9

Since Jun 21Pushed 6y ago2 watchersCompare

[ Source](https://github.com/justcodingnobb/EasyExcel)[ Packagist](https://packagist.org/packages/rekkles/easyexcel)[ Docs](https://github.com/justcodingnobb/EasyExcel)[ RSS](/packages/rekkles-easyexcel/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependencies (1)Versions (3)Used By (0)

已停止维护，建议使用 xlswriter [地址](https://xlswriter-docs.viest.me/)
===========================================================

[](#已停止维护建议使用-xlswriter-地址)

Installation
------------

[](#installation)

```
$ composer require "rekkles/easyexcel" -vvv
```

Usage
-----

[](#usage)

```
use EasyExcel\Read\ExcelToArray;
use EasyExcel\Read\ChunkReadFilter;

//简单获取Excel的数据为Array
$config = ['firstRowAsIndex' => true];
$getData = new ExcelToArray('/Users/rekkles/code/data.csv',$config);
$getData->load();
var_dump($getData->getData());

//分批获取Excel的数据（防止内存泄漏）
$chunk = new ChunkReadFilter();
$chunk->setRows(10, 2);
$data = new ExcelToArray('/Users/rekkles/code/data.csv');
var_dump($data->loadByChunk($chunk)->getData());

//写入Excel 生成文件到指定目录
$outObj = new ArrayToExcel(array(
     'fileName' => 'test.csv',           //导出的excel的文件的名称
     'sheetTitle' => '11',              //每个工作薄的标题
     'creator' => 'rekkles',            //创建者
     'writeType' => 'CSV',              //输出类型 Excel5 Excel7 CSV
     'path' => ROOT_PATH.'file/',    //输出路径 确保有写入权限
));
$outObj->setFirstRow(array('',1111,2222,3333))
  ->fillData(array(
  ['','aaa','bbb','ccc'],
  ['','ddd','eee','fff']
  ));
```

Documentation
-------------

[](#documentation)

目前是第一版，功能还在逐渐完善中。

代码不是很复杂，针对PHPExcel封装了一部， 遇到问题可以自行debug，有bug提交PR就更好了！

Feature
-------

[](#feature)

1.批量导入、导出 2.支持更多的文件格式

Donate
------

[](#donate)

[![wechat](https://camo.githubusercontent.com/6c0cc1b8ceae44ed425b6f7793d09a995e06acabdaf273d7e86f8f6b2fa41a58/68747470733a2f2f72656b6b6c65732e78797a2f77782e706e67)](https://camo.githubusercontent.com/6c0cc1b8ceae44ed425b6f7793d09a995e06acabdaf273d7e86f8f6b2fa41a58/68747470733a2f2f72656b6b6c65732e78797a2f77782e706e67)

[![alipay](https://camo.githubusercontent.com/6f5e3e5292005f73893b59fa6e24e7729d1387669c66c6c7f3fc026ee1641b55/68747470733a2f2f72656b6b6c65732e78797a2f616c697061792e6a706567)](https://camo.githubusercontent.com/6f5e3e5292005f73893b59fa6e24e7729d1387669c66c6c7f3fc026ee1641b55/68747470733a2f2f72656b6b6c65732e78797a2f616c697061792e6a706567)

[个人博客](https://rekkles.xyz/)
[个人gitbook](https://gitbook.rekkles.xyz/)

###  Health Score

31

—

LowBetter than 66% of packages

Maintenance18

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 83.3% 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 ~0 days

Total

2

Last Release

2931d ago

### Community

Maintainers

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

---

Top Contributors

[![leronY](https://avatars.githubusercontent.com/u/13778409?v=4)](https://github.com/leronY "leronY (10 commits)")[![justcodingnobb](https://avatars.githubusercontent.com/u/16287171?v=4)](https://github.com/justcodingnobb "justcodingnobb (2 commits)")

---

Tags

excelexcelreaderexcelwriterphpexcelPHPExcel

### Embed Badge

![Health badge](/badges/rekkles-easyexcel/health.svg)

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

###  Alternatives

[arogachev/yii2-excel

ActiveRecord import and export based on PHPExcel for Yii 2 framework

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

CakePHP excel generator

2325.1k](/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)
