PHPackages                             phore/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. [Templating &amp; Views](/categories/templating)
4. /
5. phore/html

ActiveLibrary[Templating &amp; Views](/categories/templating)

phore/html
==========

Fluent HTML Template api

v0.4(6y ago)14.1k2MITPHPPHP &gt;7.0

Since Aug 23Pushed 3y ago1 watchersCompare

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

READMEChangelog (6)Dependencies (3)Versions (7)Used By (2)

Phore HTML Toolkit
==================

[](#phore-html-toolkit)

- Fluent API for creating HTML Elements
- Create, alter, render

Basic example
-------------

[](#basic-example)

```
// Create a div element:
$elem = fhtml("div @id=main @class=website");

// Append a  to the
$elem[] = [
    "div @id=content" => "Some Content"
];

// Append paragraph to content div:
$elem["?#content"][] = ["p" => "Some escaped content"];

// Render full page including html-header
echo $elem->renderPage();
```

will output:

```

        Some Content
        Some escaped content

```

Creating html structures
------------------------

[](#creating-html-structures)

```
$doc = fhtml("div @id=name2 @class=bordered");
$doc->alter();

```

Rendering Templates
-------------------

[](#rendering-templates)

Appending to Templates
----------------------

[](#appending-to-templates)

Use the array append syntax (`$template[] =`) to append elements to an existing element:

```
$t = fhtml();

$t[] = ["@h1" => "Hello World"];

```

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity52

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

Recently: every ~136 days

Total

6

Last Release

2257d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/878a384d056698a2400e4b7c8858db05a6caebb2c560e67151be36d46d58def0?d=identicon)[dermatthes](/maintainers/dermatthes)

---

Top Contributors

[![dermatthes](https://avatars.githubusercontent.com/u/13380559?v=4)](https://github.com/dermatthes "dermatthes (33 commits)")

---

Tags

html-elementphore-html

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[limenius/react-bundle

Client and Server-side react rendering in a Symfony Bundle

3861.2M](/packages/limenius-react-bundle)[area17/laravel-auto-head-tags

Laravel Auto Head Tags helps you build the list of head elements for your app

4616.0k](/packages/area17-laravel-auto-head-tags)[jelix/wikirenderer

WikiRenderer is a library to generate HTML or anything else from wiki content.

1712.2k1](/packages/jelix-wikirenderer)[webkinder/sproutset

A Composer package for handling responsive images in Roots Bedrock + Sage + Blade projects.

281.8k](/packages/webkinder-sproutset)

PHPackages © 2026

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