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

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

siriusphp/html
==============

HTML rendering library with an API inspired by jQuery and React

2.0.0(2y ago)8621MITPHPPHP &gt;=8.1

Since Feb 18Pushed 2y ago1 watchersCompare

[ Source](https://github.com/siriusphp/html)[ Packagist](https://packagist.org/packages/siriusphp/html)[ RSS](/packages/siriusphp-html/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (6)Versions (6)Used By (0)

Sirius HTML
===========

[](#sirius-html)

[![Source Code](https://camo.githubusercontent.com/0be9d247fc79c085f2df676e85f460e3bc3bdd7b362d10652d2857114b80b5df/687474703a2f2f696d672e736869656c64732e696f2f62616467652f736f757263652d7369726975737068702f68746d6c2d626c75652e7376673f7374796c653d666c61742d737175617265)](https://github.com/siriusphp/html)[![Latest Version](https://camo.githubusercontent.com/cb6406414230aec3ee2792c499f53455f78c038f1497fec9edbbbddaf8e833d2/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7369726975737068702f68746d6c2e7376673f7374796c653d666c61742d737175617265)](https://github.com/siriusphp/html/releases)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](https://github.com/siriusphp/html/blob/master/LICENSE)[![Build Status](https://camo.githubusercontent.com/a421f51fe612cdf110bc183863da50d56f60e93809b75e730b6f46e414504167/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f7369726975737068702f68746d6c2f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/siriusphp/html)[![Coverage Status](https://camo.githubusercontent.com/7519e42d8e7f290f6912c062e9f438b6072b16b2b07b7b1be49bfe853dfaef29/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f7369726975737068702f68746d6c2e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/siriusphp/html/code-structure)[![Quality Score](https://camo.githubusercontent.com/ceeb910eaec37f9f2f479ba1bb88808b4bfbf4f9aed85e6597534a09f7539065/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f7369726975737068702f68746d6c2e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/siriusphp/html)

Framework agnostic HTML rendering utility with an API inspired by jQuery and React.

Elevator pitch
--------------

[](#elevator-pitch)

```
$h = new Sirius\Html\Builder;

$h->registerTag('user-login-form', 'MyApp\Html\Components\UserLoginForm');

echo $h->make('user-login-form', ['_form_values' => $_POST]);
```

which will output something like

```

    Email/Username:

```

### Performance

[](#performance)

There is a simple [benchmark](tests/benchmark/) that renders a form with 4 fields and a button. Compared to Twig, Sirius HTML is 50% slower but uses 2x less memory.

The benchmark results are as follows for 100K iterations:

LibraryTimeMemorySirius HTML1.78s2MbTwig1.14s4MbOf course, this is not a real world scenario, but it gives you an idea of what to expect from this library.

Links
-----

[](#links)

- [documentation](http://sirius.ro/php/sirius/html)

###  Health Score

34

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity76

Established project with proven stability

 Bus Factor1

Top contributor holds 57.1% 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 ~798 days

Total

5

Last Release

960d ago

Major Versions

0.1.0 → 1.0.02015-09-03

1.2.0 → 2.0.02023-11-16

PHP version history (2 changes)0.1.0PHP &gt;=5.3

2.0.0PHP &gt;=8.1

### Community

Maintainers

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

---

Top Contributors

[![adrianmiu](https://avatars.githubusercontent.com/u/1293017?v=4)](https://github.com/adrianmiu "adrianmiu (8 commits)")[![irfanevrens](https://avatars.githubusercontent.com/u/166640?v=4)](https://github.com/irfanevrens "irfanevrens (6 commits)")

---

Tags

componenthtmlphpviewuihtmlviewrender

###  Code Quality

TestsPest

Static AnalysisPHPStan, Rector

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[jenssegers/blade

The standalone version of Laravel's Blade templating engine for use outside of Laravel.

8791.3M114](/packages/jenssegers-blade)[laminas/laminas-view

Fast and type safe HTML templating library with a flexible plugin system supporting multistep template composition

7528.4M269](/packages/laminas-laminas-view)[phug/phug

Pug (ex-Jade) facade engine for PHP, HTML template engine structured by indentation

66301.0k14](/packages/phug-phug)[ogheo/yii2-htmlcompress

Compress HTML output into a single line

20188.1k1](/packages/ogheo-yii2-htmlcompress)[view-components/view-components

Flexible Framework-Agnostic UI for Enterprise Web Applications

24112.0k7](/packages/view-components-view-components)[talesoft/tale-pug

A clean, lightweight and easy-to-use templating engine for PHP based on Pug, formerly Jade

319.5k3](/packages/talesoft-tale-pug)

PHPackages © 2026

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