PHPackages                             plato-creative/silverstripe-htmltag - 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. plato-creative/silverstripe-htmltag

ActiveSilverstripe-vendormodule

plato-creative/silverstripe-htmltag
===================================

Provides a simply method for wrapping strings with html tags.

1.1.3(3y ago)015311BSD-3-ClausePHP

Since Mar 2Pushed 3y agoCompare

[ Source](https://github.com/PlatoCreative/silverstripe-htmltag)[ Packagist](https://packagist.org/packages/plato-creative/silverstripe-htmltag)[ Docs](http://github.com/PlatoCreative/silverstripe-htmltag)[ RSS](/packages/plato-creative-silverstripe-htmltag/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (1)Versions (6)Used By (1)

Silverstripe html tag
=====================

[](#silverstripe-html-tag)

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

[](#installation)

Composer is the recommended way of installing SilverStripe modules.

```
composer require gorriecoe/silverstripe-htmltag

```

Requirements
------------

[](#requirements)

- silverstripe/framework ^4.0

Maintainers
-----------

[](#maintainers)

- [Gorrie Coe](https://github.com/gorriecoe)

Template usage
--------------

[](#template-usage)

```
{$h1($Title).setClass('title').setPrefix($Class)}

```

Is the equivalent of

```

        {$Title}

```

And returns

```

    This sections title

```

Controller/Object usage
-----------------------

[](#controllerobject-usage)

```
use gorriecoe\HTMLTag\View\HTMLTag;

class MyController extends Controller
{
    public function Title()
    {
        $title = HTMLTag::create($this->Data()->Title, 'h1')
            ->setPrefix($this->Class);
        if (true) {
            $title->setClass('title')
        }
        return $title;
    }
}
```

Accessing and modifying the output in the template

```

    {$Title.addClass('anotherclass')}

```

###  Health Score

30

—

LowBetter than 65% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor1

Top contributor holds 83.3% 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 ~464 days

Total

5

Last Release

1131d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/23e3a1ee967f8874e7e6bdc6394b03876b07e281c437c2fc40113e7a01b83878?d=identicon)[platocreative](/maintainers/platocreative)

---

Top Contributors

[![gorriecoe](https://avatars.githubusercontent.com/u/11811440?v=4)](https://github.com/gorriecoe "gorriecoe (5 commits)")[![merwinpoulose](https://avatars.githubusercontent.com/u/15919557?v=4)](https://github.com/merwinpoulose "merwinpoulose (1 commits)")

---

Tags

htmlsilverstripetemplatesmarkup

### Embed Badge

![Health badge](/badges/plato-creative-silverstripe-htmltag/health.svg)

```
[![Health](https://phpackages.com/badges/plato-creative-silverstripe-htmltag/health.svg)](https://phpackages.com/packages/plato-creative-silverstripe-htmltag)
```

###  Alternatives

[silverstripe/staticpublishqueue

Static publishing queue to create static versions of pages for enhanced performance and security

45135.4k4](/packages/silverstripe-staticpublishqueue)[feejin/silverstripe-securitytemplates

Custom security templates to mirror CMS

128.1k1](/packages/feejin-silverstripe-securitytemplates)[daycry/twig

twig for Codeigniter 4

145.1k2](/packages/daycry-twig)[dorsetdigital/silverstripe-enhanced-requirements

Enhanced requirements for Silverstripe

117.8k4](/packages/dorsetdigital-silverstripe-enhanced-requirements)

PHPackages © 2026

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