PHPackages                             maxakawizard/xls-writer - 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. maxakawizard/xls-writer

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

maxakawizard/xls-writer
=======================

Library for generating \*.xls workbooks

1.2.1(11y ago)3233.1k↓31.9%2[1 issues](https://github.com/MAXakaWIZARD/xls-writer/issues)MITPHPPHP &gt;=5.3.0

Since Jun 27Pushed 10y ago2 watchersCompare

[ Source](https://github.com/MAXakaWIZARD/xls-writer)[ Packagist](https://packagist.org/packages/maxakawizard/xls-writer)[ RSS](/packages/maxakawizard-xls-writer/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (1)Versions (12)Used By (0)

Xls Writer
==========

[](#xls-writer)

[![Build Status](https://camo.githubusercontent.com/d04b3738d9dcd8907878ec5de9179c63c1a319e33a49677bb3a8363ced0b883d/68747470733a2f2f6170692e7472617669732d63692e6f72672f4d4158616b6157495a4152442f786c732d7772697465722e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/MAXakaWIZARD/xls-writer)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/5c9dc0086865a3dc52649641b601ac2d3b9899dd6b854d6167c0d5247d43fa6c/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f4d4158616b6157495a4152442f786c732d7772697465722f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/MAXakaWIZARD/xls-writer/?branch=master)[![Code Climate](https://camo.githubusercontent.com/ff2a3a1be8063278c4521a35aa12dd46be6417ed0ef0839330ec7e57d2fe8a88/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f4d4158616b6157495a4152442f786c732d7772697465722f6261646765732f6770612e737667)](https://codeclimate.com/github/MAXakaWIZARD/xls-writer)[![Coverage Status](https://camo.githubusercontent.com/af3ad4587a6c1843f102bf88874da1cf58f23b348328415d67362fd55c44af00/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f4d4158616b6157495a4152442f786c732d7772697465722f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/r/MAXakaWIZARD/xls-writer?branch=master)[![SensioLabs Insight](https://camo.githubusercontent.com/31c913fb81537b77a0369f81fc1772234c5bbeac76939301836ef9f27734149b/68747470733a2f2f696d672e736869656c64732e696f2f73656e73696f6c6162732f692f39613965373738342d323461322d346232392d386236342d3635663435333036633334642e737667)](https://insight.sensiolabs.com/projects/9a9e7784-24a2-4b29-8b64-65f45306c34d)

[![Latest Stable Version](https://camo.githubusercontent.com/c91149fca7c9de32621ccdfd143e7349f5f5eb74fcef1636e54ccb389cbef085/68747470733a2f2f706f7365722e707567782e6f72672f6d6178616b6177697a6172642f786c732d7772697465722f762f737461626c65)](https://packagist.org/packages/maxakawizard/xls-writer)[![Latest Unstable Version](https://camo.githubusercontent.com/bcb2fade700fa983d4b636942b0298c9ce60568d38006883d70ad6f6a1229565/68747470733a2f2f706f7365722e707567782e6f72672f6d6178616b6177697a6172642f786c732d7772697465722f762f756e737461626c65)](https://packagist.org/packages/maxakawizard/xls-writer)[![Packagist](https://camo.githubusercontent.com/9e5d081e76193220a1b162c9235ebb3a2dee0a368340992346c1c6f2e671ae82/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6d6178616b6177697a6172642f786c732d7772697465722e737667)](https://packagist.org/packages/maxakawizard/xls-writer)

[![Minimum PHP Version](https://camo.githubusercontent.com/6bcae604170f31028bf0158bcdd3166384ca0878a804971e2d7a17d7b2e8aaef/687474703a2f2f696d672e736869656c64732e696f2f62616467652f7068702d253345253344253230352e332e332d3838393242462e737667)](https://php.net/)[![PHP 7 ready](https://camo.githubusercontent.com/254b90dae029433dfff9e75121b70a174b2293f6ef5012bf1e111d556bc9b8c0/687474703a2f2f7068703772656164792e74696d6573706c696e7465722e63682f4d4158616b6157495a4152442f786c732d7772697465722f62616467652e737667)](https://travis-ci.org/MAXakaWIZARD/xls-writer)[![License](https://camo.githubusercontent.com/dc9a26cdba10b2eddd79b6b1e0dc1045e2c0e8325126a6261f3ef31d4ce17449/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6d6178616b6177697a6172642f786c732d7772697465722e737667)](https://packagist.org/packages/maxakawizard/xls-writer)

Port of [PEAR Spreadsheet Excel Writer](http://pear.php.net/package/Spreadsheet_Excel_Writer).

This package is compliant with [PSR-4](http://www.php-fig.org/psr/4/), [PSR-1](http://www.php-fig.org/psr/1/), and [PSR-2](http://www.php-fig.org/psr/2/). If you notice compliance oversights, please send a patch via pull request.

Known limitations
-----------------

[](#known-limitations)

- Supports only `XLS` format (BIFF8)

Usage
-----

[](#usage)

```
require('vendor/autoload.php');

$workbook = new Xls\Workbook();

$worksheet = $workbook->addWorksheet('My first worksheet');

$worksheet->write(0, 0, 'Name');
$worksheet->write(0, 1, 'Age');
$worksheet->write(1, 0, 'John Smith');
$worksheet->write(1, 1, 30);
$worksheet->write(2, 0, 'Johann Schmidt');
$worksheet->write(2, 1, 31);
$worksheet->write(3, 0, 'Juan Herrera');
$worksheet->write(3, 1, 32);

$workbook->save('/path/to/test.xls');
```

Documentation
-------------

[](#documentation)

Original docs can be found [here](https://pear.php.net/manual/en/package.fileformats.spreadsheet-excel-writer.php)

License
-------

[](#license)

This library is released under [MIT](http://www.tldrlegal.com/license/mit-license) license.

###  Health Score

36

—

LowBetter than 82% of packages

Maintenance13

Infrequent updates — may be unmaintained

Popularity38

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity65

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

Recently: every ~6 days

Total

11

Last Release

4001d ago

Major Versions

1.2.0 → 2.0.0-alpha12015-04-22

1.2.1 → 2.0.0-alpha32015-05-10

1.x-dev → 2.0.0-alpha42015-05-20

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1138453?v=4)[Max Grigorian](/maintainers/MAXakaWIZARD)[@MAXakaWIZARD](https://github.com/MAXakaWIZARD)

---

Top Contributors

[![MAXakaWIZARD](https://avatars.githubusercontent.com/u/1138453?v=4)](https://github.com/MAXakaWIZARD "MAXakaWIZARD (191 commits)")

### Embed Badge

![Health badge](/badges/maxakawizard-xls-writer/health.svg)

```
[![Health](https://phpackages.com/badges/maxakawizard-xls-writer/health.svg)](https://phpackages.com/packages/maxakawizard-xls-writer)
```

###  Alternatives

[knplabs/gaufrette

PHP library that provides a filesystem abstraction layer

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

Flysystem adapter for Google Cloud Storage

26320.6M30](/packages/superbalist-flysystem-google-storage)[illuminate/filesystem

The Illuminate Filesystem package.

15161.6M2.6k](/packages/illuminate-filesystem)[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)[madnest/madzipper

Easier zip file handling for Laravel applications.

1382.3M6](/packages/madnest-madzipper)

PHPackages © 2026

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