PHPackages                             antsugdev83/simple-xlsx - 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. antsugdev83/simple-xlsx

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

antsugdev83/simple-xlsx
=======================

Simple create file xlsx

1.0.0(1y ago)00PHPPHP &gt;=8.2

Since Feb 11Pushed 1y ago1 watchersCompare

[ Source](https://github.com/AntsugDev/simple-xlsx)[ Packagist](https://packagist.org/packages/antsugdev83/simple-xlsx)[ RSS](/packages/antsugdev83-simple-xlsx/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (7)Versions (3)Used By (0)

SIMPLE-XLSX
===========

[](#simple-xlsx)

This project have scope simplify use plugin php spreadsheet.

This project create class for management creation file xlsx; into this class it's possible define:

- plus sheets
- header difference by number sheets
- possibility custom font color and background single colunm
- possibility custom define (if single sheet) define name single sheet
- possibility added before table, of information additional
- possibility create, after creation file xlsx, the zip

---

---

Use
---

[](#use)

Into directory *example*, they are found example code. In general, from user respect this sequence:

1. instance class

```
$xlsx = new \Anton\SimpleXlsx\SimpleXlsx($header,'standard',null,1,null,$pathBase,null,null);
```

2. instane headers and sheets

```
 $row  = $xlsx->setSpreadsheet();
```

This define initial base row.

3. Read your data and call method for create body:

```
 $xlsx->setBodyCell(0,0,$row,$item['name'],$color);
```

4. Save file

```
$xlsx->save();
```

---

DETAILS OF ARGUMENTS FROM THE INSTANCE CLASS AND FROM THE PRINCIPAL FUNCTION INTO CLASS
---------------------------------------------------------------------------------------

[](#details-of-arguments-from-the-instance-class-and-from-the-principal-function-into-class)

### INSTANCE

[](#instance)

1. **header**: array header file; this array it must be how example:

```
$headeres = [ [] ]
```

2. **title** : name file
3. **sheets**: array one-dimensional and value into this it must be string
4. **default row**: this define where it begins table. Default is defined to 1; if greater one, table after the row defined
5. **extra data**: this can to be string or array; if is defined and defaultRow greater one, into the file xlsx is positioned before table
6. **pathbase**: is directory of save file
7. **len**: if defined extradata this represents the columns length
8. **extracolor**: array, represents the possibility change color font and background

---

### FUNCTION

[](#function)

*setSpreadsheet*

This function create header and sheets.

The arguments are:

1. background: you can to be null, if is defined represents color of background the columns from header
2. color: you can to be null, if is defined represents color of font the columns from header
3. name sheet: you can to be null, if is defined only sheet and represents name of sheet

*setBodyCell*

With this function is created column from the body.

The arguments are:

- index sheet
- index column (if zero example A0,B0,ec..)
- row
- data
- boolean value: if true define background column difference ('F2F3F4' or 'EAEDED')
- position text : left,center or rigth
- number format data: for this argument it is postponed [NumberFormat](https://github.com/PHPOffice/PhpSpreadsheet)
- fill: the possibility custom background color column and bold or not bold text; this is an array

*save*

This function create file. It's possible call this function with argument ZipArchive; if this is defined the function create zip with file xlsx.

EXAMPLE
-------

[](#example)

- [STAMDARD](example/standard.php)
- [STANDARDWITH EXTRA DATA](example/standard_with_extra_data.php)
- [STANDARD WITH EXTRA DATA CUSTOM](example/standard_with_extra_data_custom.php)
- [STANDARD WITH ZIP](example/standard_with_zip.php)
- [TWO SHEETS](example/twoSheets.php)
- [HEADER CUSTOM](example/header_custom.php)
- [FILL](example/fill.php)
- [SHEET NAME CUSTOM](example/sheet_name_custom.php)

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance44

Moderate activity, may be stable

Popularity0

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity51

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

452d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3dff068dddf536aa3f1c405bb480e901983f1c956f1ec333bf08345661c8dee7?d=identicon)[AntsugDev](/maintainers/AntsugDev)

---

Top Contributors

[![AntsugDev](https://avatars.githubusercontent.com/u/29470393?v=4)](https://github.com/AntsugDev "AntsugDev (13 commits)")

### Embed Badge

![Health badge](/badges/antsugdev83-simple-xlsx/health.svg)

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

###  Alternatives

[unisharp/laravel-filemanager

A file upload/editor intended for use with Laravel 5 to 10 and CKEditor / TinyMCE

2.2k3.3M73](/packages/unisharp-laravel-filemanager)[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9682.1M97](/packages/roots-acorn)[laravel-zero/framework

The Laravel Zero Framework.

3371.4M368](/packages/laravel-zero-framework)[flarum/core

Delightfully simple forum software.

211.3M1.9k](/packages/flarum-core)[laravel/vapor-cli

The Laravel Vapor CLI

31310.7M8](/packages/laravel-vapor-cli)[concrete5/core

Concrete core subtree split

19159.3k48](/packages/concrete5-core)

PHPackages © 2026

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