PHPackages                             topvisor/xlsx-creator - 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. topvisor/xlsx-creator

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

topvisor/xlsx-creator
=====================

Library for creating xlsx files for Topvisor

v1.25(2mo ago)24.3k↑100%[1 issues](https://github.com/topvisor/xlsx-creator/issues)MITPHPPHP &gt;=7.0

Since Sep 26Pushed 2mo ago1 watchersCompare

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

READMEChangelog (7)DependenciesVersions (36)Used By (0)

xlsx-creator
============

[](#xlsx-creator)

Потоковая PHP библиотека для создания xlsx файлов

Установка
=========

[](#установка)

Используйте [composer](https://getcomposer.org/) для установки

composer.json

```
{
    "require": {
        "topvisor/xlsx-creator": "^1.0"
    }
}
```

Вступление
==========

[](#вступление)

Примеры расположены в папке [examples](https://github.com/topvisor/xlsx-creator/tree/master/examples).

Запуск примеров

```
git clone https://github.com/topvisor/xlsx-creator.git
cd xlsx-creator
composer install
php examples/simple.php
```

Важнейшей особенностью библиотеки является ее потоковость. [Фиксация изменений](#%D0%A4%D0%B8%D0%BA%D1%81%D0%B0%D1%86%D0%B8%D1%8F-%D0%B8%D0%B7%D0%BC%D0%B5%D0%BD%D0%B5%D0%BD%D0%B8%D0%B9) выгружает данные в файл, и удаляет их из оперативной памяти.

Пример использования библиотеки
===============================

[](#пример-использования-библиотеки)

```
$workbook = new \Topvisor\XlsxCreator\Workbook($xlsxFilename); // инициализация библиотеки

$sheetName = 'Sheet1'; // имя таблицы
$worksheet = $workbook->addWorksheet($sheetName); // создание таблицы

$values = ['test1', 'test2', 3, 4]; // значения ячеек строки
$worksheet->addRow($values); // создание строки

$xlsxFilename = __DIR__.'/example1.xlsx'; // путь, по которому будет создан xlsx файл
$workbook->toFile($xlsxFilename); // создание xlsx файла
```

Фиксация изменений
==================

[](#фиксация-изменений)

Фиксация выгружает изменения из памяти в файл. После фиксации объект становится неизменяемым.

```
// Фиксирует книгу
$workbook->commit();

// Фиксирует таблицу
$worksheet->commit();

// Фиксирует строку (и все предыдущие)
$row->commit();
```

###  Health Score

49

—

FairBetter than 95% of packages

Maintenance75

Regular maintenance activity

Popularity24

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity70

Established project with proven stability

 Bus Factor1

Top contributor holds 94.5% 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 ~93 days

Recently: every ~308 days

Total

34

Last Release

75d ago

Major Versions

v0.8-alpha → v1.02017-10-22

PHP version history (2 changes)v0.1-alphaPHP ^7.0

v1.16PHP &gt;=7.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/59361374?v=4)[Topvisor LLC](/maintainers/topvisor)[@topvisor](https://github.com/topvisor)

---

Top Contributors

[![decaseal](https://avatars.githubusercontent.com/u/13977868?v=4)](https://github.com/decaseal "decaseal (275 commits)")[![Artemeey](https://avatars.githubusercontent.com/u/4234863?v=4)](https://github.com/Artemeey "Artemeey (12 commits)")[![artem-artemkin](https://avatars.githubusercontent.com/u/152987164?v=4)](https://github.com/artem-artemkin "artem-artemkin (2 commits)")[![dmitriy-prokoshev](https://avatars.githubusercontent.com/u/173471052?v=4)](https://github.com/dmitriy-prokoshev "dmitriy-prokoshev (2 commits)")

---

Tags

phpexcelxlsxlsxOpenXMLspreadsheet

### Embed Badge

![Health badge](/badges/topvisor-xlsx-creator/health.svg)

```
[![Health](https://phpackages.com/badges/topvisor-xlsx-creator/health.svg)](https://phpackages.com/packages/topvisor-xlsx-creator)
```

PHPackages © 2026

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