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

ActiveLibrary

tral/xls-writer
===============

Fixed maxakawizard/xls-writer compatible with php 8.0

1.2.1(3y ago)021MITPHPPHP &gt;=5.3.0

Since Jun 14Pushed 3y ago1 watchersCompare

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

READMEChangelogDependencies (1)Versions (2)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)[![Coverage Status](https://camo.githubusercontent.com/af3ad4587a6c1843f102bf88874da1cf58f23b348328415d67362fd55c44af00/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f4d4158616b6157495a4152442f786c732d7772697465722f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/r/MAXakaWIZARD/xls-writer?branch=master)[![Latest Stable Version](https://camo.githubusercontent.com/c627e5d2ab05cfb8a58b1614e1700f72762e3744f28f8738b6267c1ce63c787f/68747470733a2f2f706f7365722e707567782e6f72672f6d6178616b6177697a6172642f786c732d7772697465722f762f737461626c652e737667)](https://packagist.org/packages/maxakawizard/xls-writer)[![Total Downloads](https://camo.githubusercontent.com/1bc4968d0f4890e766b8e0d6d084911d802500a8bccbcfff8d1e601a3db168c4/68747470733a2f2f706f7365722e707567782e6f72672f6d6178616b6177697a6172642f786c732d7772697465722f646f776e6c6f6164732e737667)](https://packagist.org/packages/maxakawizard/xls-writer)[![License](https://camo.githubusercontent.com/bb8ff9df0990a96a6c5fcb3fb5337470537477b74e1b35d86008f0bc886cf2bd/68747470733a2f2f706f7365722e707567782e6f72672f6d6178616b6177697a6172642f786c732d7772697465722f6c6963656e73652e737667)](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-0](http://www.php-fig.org/psr/0/), [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.

Usage
-----

[](#usage)

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

$workbook = new Xls\Writer('test.xls');

$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->close();
```

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

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity42

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

1425d ago

### Community

Maintainers

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

---

Top Contributors

[![tral](https://avatars.githubusercontent.com/u/5369867?v=4)](https://github.com/tral "tral (1 commits)")

### Embed Badge

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

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

PHPackages © 2026

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