PHPackages                             wwtg99/structure-files - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. wwtg99/structure-files

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

wwtg99/structure-files
======================

0.2.0(9y ago)083MITPHP

Since Mar 2Pushed 9y ago1 watchersCompare

[ Source](https://github.com/wwtg99/StructureFiles)[ Packagist](https://packagist.org/packages/wwtg99/structure-files)[ RSS](/packages/wwtg99-structure-files/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (2)Versions (6)Used By (0)

StructureFiles
==============

[](#structurefiles)

### A common interface for Section structure files and wrappers for downloading and printing in browser.

[](#a-common-interface-for-section-structure-files-and-wrappers-for-downloading-and-printing-in-browser)

#### Section structure

[](#section-structure)

- section name, optional
- section head, optional
- section body, required

#### Section type

[](#section-type)

- key value (kv)

```
key1 value1
key2 value2

```

- Table (tsv)

```
field1 field2 field3
value1 value2 value3
value4 value5 value6

```

- Raw two dimension array

#### Examples

[](#examples)

```
$name = 'name1';
// body [['field1'=>'', 'field2'=>'', ...], ...]
$data = [['f1'=>'v1', 'f2'=>'v2'], ['f1'=>'v3', 'f2'=>'v4']];
// head [['title'=>'', 'field'=>'', 'type'=>''], ...]
$head = [['title'=>'t1', 'field'=>'f1', 'type'=>'string'], ['title'=>'t2', 'field'=>'f2', 'type'=>'int']];
// rule
$rules = [];
$s = new Section(Section::KV_SECTION, $name, $data, $head, $rules);
// SectionFile is a list of Section
$sf = new SectionFile([$s1]);

```

##### Rules

[](#rules)

- showHead: bool, default true
- showName: bool, default true
- null: string, default '-', string to show if value is null
- skip: array, default \[\], skip fields
- prefix: string, default '', prefix added before each line
- postfix: string, default '', postfix added after each line
- del: string, default '\\t', delimiter between each fields

##### Use SectionFile class to create txt file or excel file

[](#use-sectionfile-class-to-create-txt-file-or-excel-file)

```
$txt1 = TxtFile::createFromSection($sf);
$excel1 = ExcelFile::createFromSection($sf);
// Download in browser
$excel1->download();
// Print to browser if supported
$txt1->printContent();

```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity57

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

Every ~37 days

Total

5

Last Release

3576d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/b34e1979bed52d6644fa09df287ed7ced3fd21989c7ec02e722ae0c192cd89d4?d=identicon)[wwtg99](/maintainers/wwtg99)

---

Top Contributors

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

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/wwtg99-structure-files/health.svg)

```
[![Health](https://phpackages.com/badges/wwtg99-structure-files/health.svg)](https://phpackages.com/packages/wwtg99-structure-files)
```

###  Alternatives

[sintret/yii2-gii-adminlte

Yii2 Generator extension for Gii plugin with adminlte and base on dynagrid. upload excel to system to with log upload

209.6k2](/packages/sintret-yii2-gii-adminlte)[padosoft/php-oara

The goal of the Open Affiliate Report Aggregator (OARA) is to develop a set of PHP classes that can download affiliate reports from a number of affiliate networks, and store the data in a common format.

1811.4k1](/packages/padosoft-php-oara)

PHPackages © 2026

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