PHPackages                             pmvc-plugin/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. pmvc-plugin/excel

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

pmvc-plugin/excel
=================

Excel lib

0.1(10y ago)0169MITPHP

Since Aug 17Pushed 6y ago1 watchersCompare

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

READMEChangelog (1)Dependencies (2)Versions (2)Used By (0)

[![Latest Stable Version](https://camo.githubusercontent.com/ed2ed31db8d146acb8dcb0bb1d5fe2c58b124cff27c2d328d2651d7e4cefb10b/68747470733a2f2f706f7365722e707567782e6f72672f706d76632d706c7567696e2f657863656c2f762f737461626c65)](https://packagist.org/packages/pmvc-plugin/excel)[![Latest Unstable Version](https://camo.githubusercontent.com/22f768c36350ce9197e190819b4d7c4643d43a70e7d04b2c912f19b5e687c6ef/68747470733a2f2f706f7365722e707567782e6f72672f706d76632d706c7567696e2f657863656c2f762f756e737461626c65)](https://packagist.org/packages/pmvc-plugin/excel)[![Build Status](https://camo.githubusercontent.com/e5203706cf1bbac22a4fe512a3ee39960427ffb35b485cecb1f4fca6cd602219/68747470733a2f2f7472617669732d63692e6f72672f706d76632d706c7567696e2f657863656c2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/pmvc-plugin/excel)[![License](https://camo.githubusercontent.com/2262dd99ba4fc79bded097dace6f819da6d69bc31f57e34d31bb4a765d7add89/68747470733a2f2f706f7365722e707567782e6f72672f706d76632d706c7567696e2f657863656c2f6c6963656e7365)](https://packagist.org/packages/pmvc-plugin/excel)[![Total Downloads](https://camo.githubusercontent.com/61adc99288f771cfe61de79d4e52e99b6bcee47a0978019a5732466eb8524e72/68747470733a2f2f706f7365722e707567782e6f72672f706d76632d706c7567696e2f657863656c2f646f776e6c6f616473)](https://packagist.org/packages/pmvc-plugin/excel)

Excel Library (for now write only)
==================================

[](#excel-library-for-now-write-only)

- Fork from [https://github.com/mk-j/PHP\_XLSXWriter](https://github.com/mk-j/PHP_XLSXWriter)
- Replace with pclzip don't need compile ZipArchive in this version
    -

Office Open XML File Formats
----------------------------

[](#office-open-xml-file-formats)

-
- [https://en.wikipedia.org/wiki/Office\_Open\_XML\_file\_formats](https://en.wikipedia.org/wiki/Office_Open_XML_file_formats)

How to use?
-----------

[](#how-to-use)

```
include_once('vendor/autoload.php');
PMVC\Load::plug();

$data = array(
    array('year','month','amount'),
    array('2003','1','220'),
    array('2003','2','153.5'),
);

$writer = \PMVC\plug('excel')->create();
$writer->writeSheet($data);
$writer->writeToFile('output.xlsx');

```

Install with Composer
---------------------

[](#install-with-composer)

### 1. Download composer

[](#1-download-composer)

- mkdir test\_folder
- curl -sS  | php

### 2. Install by composer.json or use command-line directly

[](#2-install-by-composerjson-or-use-command-line-directly)

#### 2.1 Install by composer.json

[](#21-install-by-composerjson)

- vim composer.json

```
{
    "require": {
        "pmvc-plugin/excel": "dev-master"
    }
}

```

- php composer.phar install

#### 2.2 Or use composer command-line

[](#22-or-use-composer-command-line)

- php composer.phar require pmvc-plugin/excel

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

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

3927d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/6f593111e77142a10224458b0436e6b2d6f3e537f924c03130f0208bd3c4477f?d=identicon)[HillLiu](/maintainers/HillLiu)

---

Top Contributors

[![HillLiu](https://avatars.githubusercontent.com/u/1877738?v=4)](https://github.com/HillLiu "HillLiu (9 commits)")

---

Tags

excelplug-inpmvc

### Embed Badge

![Health badge](/badges/pmvc-plugin-excel/health.svg)

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

###  Alternatives

[phpoffice/phpspreadsheet

PHPSpreadsheet - Read, Create and Write Spreadsheet documents in PHP - Spreadsheet engine

13.9k293.5M1.3k](/packages/phpoffice-phpspreadsheet)[maatwebsite/excel

Supercharged Excel exports and imports in Laravel

12.7k144.3M712](/packages/maatwebsite-excel)[rap2hpoutre/fast-excel

Fast Excel import/export for Laravel

2.3k24.9M47](/packages/rap2hpoutre-fast-excel)[openspout/openspout

PHP Library to read and write spreadsheet files (CSV, XLSX and ODS), in a fast and scalable way

1.2k57.6M131](/packages/openspout-openspout)[gotenberg/gotenberg-php

A PHP client for interacting with Gotenberg, a developer-friendly API for converting numerous document formats into PDF files, and more!

3685.2M19](/packages/gotenberg-gotenberg-php)

PHPackages © 2026

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