PHPackages                             adilab/html - 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. adilab/html

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

adilab/html
===========

Adi HTML Tools for PHP

v1.0.0(10y ago)031MITPHP

Since Apr 15Pushed 10y ago1 watchersCompare

[ Source](https://github.com/adilab/html)[ Packagist](https://packagist.org/packages/adilab/html)[ Docs](https://github.com/adilab/html.git)[ RSS](/packages/adilab-html/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (2)Dependencies (2)Versions (3)Used By (0)

Adi HTML Tools for PHP
======================

[](#adi-html-tools-for-php)

Adi HTML Tools for PHP is a set of class for prepare HTML code directly in PHP. The set content class for work with basic HTML tags, and to create HTML table code taking data from an array.

Installing
----------

[](#installing)

Preferred way to install is with [Composer](https://getcomposer.org/).

Install this library using composer:

```
$ composer require adilab/html
```

Usage:
------

[](#usage)

Usage of Tag class. [Online demo.](http://adilab.net/projects/demo/html.php)

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

use Adi\Html\Tag;

$p = new Tag('p', 'Hello world');
$p->addStyle('color: #ff0000')->addStyle('background-color', '#ccc');
echo $p->render();
```

Usage of complex HTML structure. [Online demo.](http://adilab.net/projects/demo/html.php)

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

use Adi\Html\Div;
use Adi\Html\Strong;

echo Div::create(Strong::create('Hello world'))->setStyle('color: #ff0000');
```

Usage of Table class. [Online demo.](http://adilab.net/projects/demo/table.php)

```
require('vendor/autoload.php');
use Adi\Html\Table\Table;
use Adi\Html\Table\Tr;
use Adi\Html\Table\Td;

$data = array(
    array('aaa', 'bbb', Td::create('ccc')->addClass('ccc')),
    array('ddd', 'eee', 'fff'),
    Tr::create(array('ggg', 'hhh', 'iii'))->addClass('selected'),
);

echo Table::create($data);
```

Usage of Table class - named columns. [Online demo.](http://adilab.net/projects/demo/table.php#named-columns)

```
require('vendor/autoload.php');
use Adi\Html\Table\Table;
use Adi\Html\Table\Th;
use Adi\Html\Table\Tr;
use Adi\Html\Table\Column;
use Adi\Html\Table\Td;

$data = array(
    array('A' => 'aaa', 'B' => 'bbb', 'C' => 'ccc'),
    array('A' => 'ddd', 'B' => 'eee', 'C' => 'fff'),
    array('A' => 'ggg', 'B' => 'hhh', 'C' => Td::create('iii')->setId('i')),
);

$table = new Table($data);
$table->setColumn('B', Column::create()->addStyle('color', '#ff0000'));
$table->setHeader('B', '[B]');
$table->setHeader('C', Th::create('[C]')->addStyle('color', '#0000ff'));
echo $table;
```

Documentation
-------------

[](#documentation)

[API documentacion](http://adilab.net/projects/api/namespace-Adi.Html.html)

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity64

Established project with proven stability

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

Total

2

Last Release

3726d ago

Major Versions

v0.0.1 → v1.0.02016-04-16

### Community

Maintainers

![](https://www.gravatar.com/avatar/982b5ec2eabf94b8c9220c04fa00f1553a2bf387a20e11fed2c058534da1ec86?d=identicon)[adilab](/maintainers/adilab)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/adilab-html/health.svg)

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

###  Alternatives

[malukenho/docheader

A small library to check header docs

68407.8k137](/packages/malukenho-docheader)[heloufir/filament-leaflet-geosearch

Implementation of LeafLet GeoSearch as a Filament Form Field

232.1k](/packages/heloufir-filament-leaflet-geosearch)

PHPackages © 2026

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