PHPackages                             petrgrishin/yii-html-tag - 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. petrgrishin/yii-html-tag

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

petrgrishin/yii-html-tag
========================

Builder to create a html tag, an object-oriented approach

1.0.0(11y ago)0813MITPHPPHP &gt;=5.3.0

Since Aug 16Pushed 11y ago1 watchersCompare

[ Source](https://github.com/petrgrishin/yii-html-tag)[ Packagist](https://packagist.org/packages/petrgrishin/yii-html-tag)[ RSS](/packages/petrgrishin-yii-html-tag/feed)WikiDiscussions master Synced yesterday

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

yii-html-tag
============

[](#yii-html-tag)

Builder to create a html tag, an object-oriented approach

Installation
------------

[](#installation)

Add a dependency to your project's composer.json:

```
{
    "require": {
        "petrgrishin/yii-html-tag": "~1.0"
    }
}
```

Usage examples
--------------

[](#usage-examples)

#### Create tag

[](#create-tag)

```
use \PetrGrishin\HtmlTag\HtmlTag;

$tag = HtmlTag::create(HtmlTag::TAG_DIV, array('class' => 'content'))->begin();
$tag->addClass('well');

print('content');

$tag->end();
// output: content
```

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity58

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

4288d ago

### Community

Maintainers

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

---

Top Contributors

[![petrgrishin](https://avatars.githubusercontent.com/u/580229?v=4)](https://github.com/petrgrishin "petrgrishin (11 commits)")

### Embed Badge

![Health badge](/badges/petrgrishin-yii-html-tag/health.svg)

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

PHPackages © 2026

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