PHPackages                             businessg/base-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. [PDF &amp; Document Generation](/categories/documents)
4. /
5. businessg/base-excel

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

businessg/base-excel
====================

Excel 同步/异步智能配置导入导出基础组件，可独立使用，支持无限极列头配置、页码、列头、列样式配置。

v1.0.1-beta.1(1mo ago)08↓100%2MITPHPPHP &gt;=8.1

Since Mar 20Pushed 1mo agoCompare

[ Source](https://github.com/businessg/base-excel)[ Packagist](https://packagist.org/packages/businessg/base-excel)[ RSS](/packages/businessg-base-excel/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (10)Versions (2)Used By (2)

businessg/base-excel
====================

[](#businessgbase-excel)

Excel 同步/异步智能配置导入导出**基础组件**，可独立使用。

特性
--

[](#特性)

- 仅依赖 PSR 标准与通用库
- **可独立使用**：内置 xlswriter 驱动
- 支持无限极列头配置
- 支持页码、列头、列样式配置
- 提供 Data DTO、Event、Strategy、Driver 抽象

依赖
--

[](#依赖)

- PHP &gt;= 8.1
- ext-xlswriter（xlswriter 扩展）
- league/flysystem ^3.0
- overtrue/http ^1.2
- psr/container ^1.0 || ^2.0
- psr/event-dispatcher ^1.0
- ramsey/uuid \*

使用
--

[](#使用)

### 独立使用

[](#独立使用)

需提供 Container、EventDispatcher、Filesystem，并绑定 `ExportPathStrategyInterface`、`TokenStrategyInterface`。独立使用时仅支持 `OUT_PUT_TYPE_UPLOAD`（写入存储）；流式下载需由扩展实现。

目录结构
----

[](#目录结构)

```
src/
├── Console/           # 命令行抽象 (ProgressDisplay, *CommandHandler)
├── Contract/          # 契约接口 (Arrayable)
├── Data/              # 数据模型 (BaseConfig, ExportConfig, ImportConfig, Sheet, Column...)
├── Driver/            # 驱动接口与抽象类
├── Event/             # 领域事件
├── Exception/
├── Helper/
├── Progress/          # 进度接口与 DTO
├── Queue/             # 队列接口
├── Strategy/          # Token、Path 策略
└── ExcelInterface.php

```

### Console 命令行

[](#console-命令行)

- `ProgressDisplay`：进度条展示，接收 `OutputInterface`
- `ExportCommandHandler` / `ImportCommandHandler` / `ProgressCommandHandler` / `MessageCommandHandler`：命令逻辑，可注入并调用

License
-------

[](#license)

MIT

###  Health Score

36

—

LowBetter than 81% of packages

Maintenance96

Actively maintained with recent releases

Popularity7

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity28

Early-stage or recently created project

 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

50d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/9845d441ce163b641f66e392752a334a733c14697303da398bb02437c3a9d1b2?d=identicon)[vartruexuan](/maintainers/vartruexuan)

---

Top Contributors

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

---

Tags

phpexportexcelimportframework agnostic

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[maatwebsite/excel

Supercharged Excel exports and imports in Laravel

12.7k144.3M706](/packages/maatwebsite-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)
