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

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

ms100/excel-import
==================

the import Excel library

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

Since Jan 31Pushed 5y ago1 watchersCompare

[ Source](https://github.com/MS100/excel-import)[ Packagist](https://packagist.org/packages/ms100/excel-import)[ Docs](https://github.com/MS100/excel-import)[ RSS](/packages/ms100-excel-import/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-import
```

使用
--

[](#使用)

#### 导入一个sheet

[](#导入一个sheet)

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

#### 导入多个sheet

[](#导入多个sheet)

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

#### 注意事项

[](#注意事项)

- 所有的读取数据方法都是【游标读取】，它们影响同一个游标；即第一次调用 `\Ms100\ExcelImport\Sheet::readOne` 读第一行，再调用任何读取方法都将从第二行开始读取。
- 自定义的preprocess方法可以做单元格数据的预处理。
- 读取数据时如果【单元格数据】符合所 LAYOUT 常量所设置的【列的读取类型】，那么会读取出正确的【类型值】；否则不能得到正确的【类型值】。

    - 例如：设置【列的读取类型】为 `\Vtiful\Kernel\Excel::TYPE_TIMESTAMP`，但是表中实际是写了个字符串，则得不到正确的时间戳；这时，用preprocess方法，再处理一下会很方便。

###  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-import/health.svg)

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

###  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)
