PHPackages                             fyre/htmlhelper - 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. fyre/htmlhelper

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

fyre/htmlhelper
===============

A HTML helper library.

v4.0.2(8mo ago)0163↓84.6%2MITPHP

Since Apr 29Pushed 8mo ago1 watchersCompare

[ Source](https://github.com/elusivecodes/FyreHTMLHelper)[ Packagist](https://packagist.org/packages/fyre/htmlhelper)[ RSS](/packages/fyre-htmlhelper/feed)WikiDiscussions main Synced 3w ago

READMEChangelog (10)Dependencies (5)Versions (22)Used By (2)

FyreHTMLHelper
==============

[](#fyrehtmlhelper)

**FyreHTMLHelper** is a free, open-source HTML helper library for *PHP*.

Table Of Contents
-----------------

[](#table-of-contents)

- [Installation](#installation)
- [Basic Usage](#basic-usage)
- [Methods](#methods)

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

[](#installation)

**Using Composer**

```
composer require fyre/htmlhelper

```

In PHP:

```
use Fyre\Utility\HtmlHelper;
```

Basic Usage
-----------

[](#basic-usage)

- `$config` is a [*Config*](https://github.com/elusivecodes/FyreConfig).

```
$html = new HtmlHelper($config);
```

The default character set will be resolved from the "*App.charset*" key in the *Config*.

**Autoloading**

It is recommended to bind the *HtmlHelper* to the [*Container*](https://github.com/elusivecodes/FyreContainer) as a singleton.

```
$container->singleton(HtmlHelper::class);
```

Any dependencies will be injected automatically when loading from the [*Container*](https://github.com/elusivecodes/FyreContainer).

```
$html = $container->use(HtmlHelper::class);
```

Methods
-------

[](#methods)

**Attributes**

Generate an attribute string.

- `$options` is an array containing the attributes.

```
$attributes = $html->attributes($options);
```

**Escape**

Escape characters in a string for use in HTML.

- `$string` is the string to escape.

```
$escaped = $html->escape($string);
```

**Get Charset**

Get the character set.

```
$charset = $html->getCharset();
```

**Set Charset**

Set the character set.

- `$charset` is a string representing the character set.

```
$html->setCharset($charset);
```

###  Health Score

38

—

LowBetter than 83% of packages

Maintenance62

Regular maintenance activity

Popularity11

Limited adoption so far

Community11

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

Every ~63 days

Recently: every ~22 days

Total

21

Last Release

241d ago

Major Versions

v1.0 → v2.02023-07-14

v2.0.8 → v3.02024-10-26

v3.1.5 → v4.02025-10-20

### Community

Maintainers

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

---

Top Contributors

[![elusivecodes](https://avatars.githubusercontent.com/u/18050480?v=4)](https://github.com/elusivecodes "elusivecodes (21 commits)")

---

Tags

htmlphp

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/fyre-htmlhelper/health.svg)

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

PHPackages © 2026

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