PHPackages                             asan/phpexcel - 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. asan/phpexcel

ActiveLibrary

asan/phpexcel
=============

A lightweight PHP library for reading spreadsheet files

v2.0.1(7y ago)3537.6k↓36.4%17[1 issues](https://github.com/Janson-Leung/PHPExcel/issues)[4 PRs](https://github.com/Janson-Leung/PHPExcel/pulls)MITPHPPHP &gt;=7.0

Since Jun 29Pushed 2y ago3 watchersCompare

[ Source](https://github.com/Janson-Leung/PHPExcel)[ Packagist](https://packagist.org/packages/asan/phpexcel)[ Docs](https://github.com/Janson-Leung/PHPExcel)[ RSS](/packages/asan-phpexcel/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)DependenciesVersions (4)Used By (0)

phpexcel
========

[](#phpexcel)

A lightweight PHP library for reading spreadsheet files

- Based on Generator、SeekableIterator and Countable
- Support for reading by line, read data only

### Requirements

[](#requirements)

- PHP 7.0 or higher

### Installation

[](#installation)

```
composer require asan/phpexcel

```

Usage
-----

[](#usage)

### csv

[](#csv)

```
// Simple setting
$reader = Asan\PHPExcel\Excel::load('files/02.csv', 'GBK');

// Flexible setting
$reader = Asan\PHPExcel\Excel::load('files/01.csv', function(Asan\PHPExcel\Reader\Csv $reader) {
    // Set row limit
    $reader->setRowLimit(10);

    // Set column limit
    $reader->setColumnLimit(10);

    // Ignore emoty row
    $reader->ignoreEmptyRow(true);

    // Set encoding
    //$reader->setInputEncoding('GBK');

    // Set delimiter
    $reader->setDelimiter("\t");
}, 'GBK');

// skip to row 50
$reader->seek(50);

// Get the current row data
$current = $reader->current();

// Get row count
$count = $reader->count();

```

### xls

[](#xls)

```
$reader = Asan\PHPExcel\Excel::load('files/01.xls', function(Asan\PHPExcel\Reader\Xls $reader) {
    // Set row limit
    $reader->setRowLimit(10);

    // Set column limit
    $reader->setColumnLimit(10);

    // Ignore emoty row
    $reader->ignoreEmptyRow(true);

    // Select sheet index
    $reader->setSheetIndex(1);
});

// skip to row 50
$reader->seek(50);

// Get the current row data
$current = $reader->current();

// Get row count
$count = $reader->count();

// Get all sheets info
$sheets = $reader->sheets();

```

### xlsx

[](#xlsx)

```
$reader = Asan\PHPExcel\Excel::load('files/01.xlsx', function(Asan\PHPExcel\Reader\Xlsx $reader) {
    // Set row limit
    $reader->setRowLimit(10);

    // Set column limit
    $reader->setColumnLimit(10);

    // Ignore emoty row
    $reader->ignoreEmptyRow(true);

    // Select sheet index
    $reader->setSheetIndex(0);
});

// skip to row 50
$reader->seek(50);

// Get the current row data
$current = $reader->current();

// Get row count
$count = $reader->count();

// Get all sheets info
$sheets = $reader->sheets();

```

###  Health Score

37

—

LowBetter than 83% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity40

Moderate usage in the ecosystem

Community13

Small or concentrated contributor base

Maturity60

Established project with proven stability

 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 ~12 days

Total

3

Last Release

2857d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/4264643?v=4)[Asan](/maintainers/Janson-Leung)[@Janson-Leung](https://github.com/Janson-Leung)

---

Top Contributors

[![Janson-Leung](https://avatars.githubusercontent.com/u/4264643?v=4)](https://github.com/Janson-Leung "Janson-Leung (17 commits)")

### Embed Badge

![Health badge](/badges/asan-phpexcel/health.svg)

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

PHPackages © 2026

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