PHPackages                             tansuo1989/myexcel - 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. [File &amp; Storage](/categories/file-storage)
4. /
5. tansuo1989/myexcel

ActiveLibrary[File &amp; Storage](/categories/file-storage)

tansuo1989/myexcel
==================

easy to use phpexcel to read or write

18PHP

Since Feb 2Pushed 8y ago1 watchersCompare

[ Source](https://github.com/tansuo1989/tansuo1989-myexcel)[ Packagist](https://packagist.org/packages/tansuo1989/myexcel)[ RSS](/packages/tansuo1989-myexcel/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

依赖：
---

[](#依赖)

- phpexcel 1.8

使用方法：
-----

[](#使用方法)

```
//1.实例化
/*
 $file 要导入的.xlsx 文件,默认为false,当只使用write方法的时候不需要传参
 $index 默认为0，可传入sheet的索引值，或者名字
*/
$my=new \tansuo1989\myexcel($file,$index);

//2.get_data
$my->get_data($row1=false,$row2=false,$col1=false,$col2=false);
/*
  $row1,$row2 开始和结束的行数
  $col1,$col2 开始和结束的列名
  也可以传两个参数("A:1","D:60")，即从第一行A到第60行的D
  不传参的话，获取所有
*/

//3.get_row 或 get_col 获取指定行或指定列

$data=$my->get_row(5,"A","E");
$data=$my->get_col("D",2,10);

//4.write 往excel文件中写入数据，并保存为 filename.xlsx 文件
/*
$data=array(
    array(),  //第一行
    array(),  //第二行
);
$data 必须是个二维数组
*/
$my->write($data,"filename");

```

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

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/2fa9a20f54d1e9d0334113c0b37189365898f3cc53f564f102290852f923baa3?d=identicon)[tansuo1989](/maintainers/tansuo1989)

---

Top Contributors

[![tansuo1989](https://avatars.githubusercontent.com/u/12162469?v=4)](https://github.com/tansuo1989 "tansuo1989 (6 commits)")

### Embed Badge

![Health badge](/badges/tansuo1989-myexcel/health.svg)

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

###  Alternatives

[knplabs/gaufrette

PHP library that provides a filesystem abstraction layer

2.5k39.8M123](/packages/knplabs-gaufrette)[google/cloud-storage

Cloud Storage Client for PHP

34390.8M124](/packages/google-cloud-storage)[illuminate/filesystem

The Illuminate Filesystem package.

15261.6M2.6k](/packages/illuminate-filesystem)[superbalist/flysystem-google-storage

Flysystem adapter for Google Cloud Storage

26320.6M30](/packages/superbalist-flysystem-google-storage)[creocoder/yii2-flysystem

The flysystem extension for the Yii framework

2931.7M62](/packages/creocoder-yii2-flysystem)[flowjs/flow-php-server

PHP library for handling chunk uploads. Works with flow.js html5 file uploads.

2451.6M15](/packages/flowjs-flow-php-server)

PHPackages © 2026

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