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

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

jkramarz/phpexcel
=================

A lightweight PHP library for reading spreadsheet files

v1.0(8y ago)013MITPHPPHP &gt;=7.0

Since Dec 12Pushed 8y ago1 watchersCompare

[ Source](https://github.com/jkramarz/phpexcel)[ Packagist](https://packagist.org/packages/jkramarz/phpexcel)[ Docs](https://github.com/ec-web/phpexcel)[ RSS](/packages/jkramarz-phpexcel/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (2)Used By (0)

phpexcel
========

[](#phpexcel)

A lightweight PHP library for reading spreadsheet files

- Based on Generator、SeekableIterator and Countable
- Support for reading by line

### Requirements

[](#requirements)

- PHP 5.6 or higher

### Installation

[](#installation)

```
composer require ecweb/phpexcel

```

Usage
-----

[](#usage)

### csv

[](#csv)

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

// Flexible setting
$reader = EC\PHPExcel\Excel::load('files/01.csv', function(EC\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 = EC\PHPExcel\Excel::load('files/01.xls', function(EC\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 = EC\PHPExcel\Excel::load('files/01.xlsx', function(EC\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

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity58

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

Unknown

Total

1

Last Release

3073d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/7a39e2a31c418258d3b097ec592c166cd0d3b75b7ff90d3707116e2c17731151?d=identicon)[jkramarz](/maintainers/jkramarz)

---

Top Contributors

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

### Embed Badge

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

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

###  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.8M125](/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)
