PHPackages                             another/tabgen - 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. [PSR &amp; Standards](/categories/psr-standards)
4. /
5. another/tabgen

ActiveLibrary[PSR &amp; Standards](/categories/psr-standards)

another/tabgen
==============

HTML tables markup generator

0.0.2(1y ago)0995↓33.3%MITPHPPHP &gt;=8.1

Since May 28Pushed 1y ago1 watchersCompare

[ Source](https://github.com/another-ghu/TabGen)[ Packagist](https://packagist.org/packages/another/tabgen)[ Docs](https://github.com/another-ghu/TabGen)[ RSS](/packages/another-tabgen/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)DependenciesVersions (4)Used By (0)

TabGen
======

[](#tabgen)

Класс построения HTML таблиц
============================

[](#класс-построения-html-таблиц)

Доступные методы:
-----------------

[](#доступные-методы)

`->setTag()` - Устанавливает HTML тег
`->setClass()` - Устанавливает HTML класс. Цепочка вызовов
`->setStyle()` - Устанавливает HTML стиль. Цепочка вызовов
`->setAttribute()` - Устанавливает HTML атрибут. Цепочка вызовов
`->addDataString()` - Принимает строки. Цепочка вызовов. Собирает массив для вывода.
`->addDataArray()` - Принимает одномерный или двумерный массив
`->dataStringBuild()` - Используется для закрытия массива который строится через addDataString()
`->render()` - Форматирует и выводит структурированную html строку
`->wrapper()` - Используется для обертки класса Header Body Footer. Возвращает структурированный html

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

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

!Все аргументы передаваемые в конструктор опциональны.
Доступные аргументы для установки:
`string tag`
`string class`
`string style`
`string attribute`

Пример:

```
$container = new Header(tag:"div", class:"header",style:"display:flex",attribute:"MyAttr=value");
```

Будет формировать строки хидера с указанными аргументами аргументы.

```

```

Создание шапки
==============

[](#создание-шапки)

Пример установки хидера массивом:

```
$container = new Container(tag:"div", class:"container",style:"",attribute:"");
$header = new Header(tag:"div", class:"header",style:"",attribute:"");
$header->addDataArray(["header1","header2","header3"]);
$container->wrapper($header)
```

Пример установки хидера цепочкой вызовов:

```
$container = new Container(tag:"div", class:"container",style:"",attribute:"");
$header = new Header(tag:"div", class:"header",style:"",attribute:"");
$header->addDataString("header1")
        ->addDataString("header2")
        ->addDataString("header3")
$container->wrapper($header)
```

Пример установки двух хидеров массивом:

```
$container = new Container(tag:"div", class:"container",style:"",attribute:"");
$header = new Header(tag:"div", class:"header",style:"",attribute:"");
$header->addDataArray(["header1","header2","header3"]);
$header->addDataArray(["header2","header3","header4"]);
$container->wrapper($header)
```

Пример установки двух хидеров цепочкой вызовов:

```
$container = new Container(tag:"div", class:"container",style:"",attribute:"");
$header = new Header(tag:"div", class:"header",style:"",attribute:"");
$header->addDataString("header1")
        ->addDataString("header2")
        ->addDataString("header3")
        ->dataStringBuild()
        ->addDataString("header4")
        ->addDataString("header5")
        ->addDataString("header6");
$container->wrapper($header)
```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance31

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

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

Total

2

Last Release

707d ago

### Community

Maintainers

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

---

Top Contributors

[![another-ghu](https://avatars.githubusercontent.com/u/69651924?v=4)](https://github.com/another-ghu "another-ghu (3 commits)")

---

Tags

containergeneratorhtmlgridtablediv

### Embed Badge

![Health badge](/badges/another-tabgen/health.svg)

```
[![Health](https://phpackages.com/badges/another-tabgen/health.svg)](https://phpackages.com/packages/another-tabgen)
```

###  Alternatives

[psr/container

Common Container Interface (PHP FIG PSR-11)

10.0k1.0B3.7k](/packages/psr-container)[pimple/pimple

Pimple, a simple Dependency Injection Container

2.7k130.5M1.4k](/packages/pimple-pimple)[php-di/php-di

The dependency injection container for humans

2.8k48.9M994](/packages/php-di-php-di)[league/container

A fast and intuitive dependency injection container.

86787.8M343](/packages/league-container)[okipa/laravel-table

Generate tables from Eloquent models.

56752.8k](/packages/okipa-laravel-table)[anourvalar/office

Generate documents from existing Excel &amp; Word templates | Export tables to Excel (Grids)

24085.2k](/packages/anourvalar-office)

PHPackages © 2026

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