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

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

berry/html
==========

No more context-switching, just build your HTML templates in PHP.

v0.15.0(1mo ago)01.3k[2 issues](https://github.com/berry-php/html/issues)3MITPHPPHP &gt;=8.3CI passing

Since Dec 27Pushed 1mo agoCompare

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

READMEChangelogDependencies (12)Versions (29)Used By (3)

Berry HTML
==========

[](#berry-html)

No more context-switching, just build your HTML templates in PHP.

Berry is a PHP library for composing correct HTML strings with small element builders.

It fits especially well with hypermedia-focused applications: render HTML on the server, send HTML over the wire, and let the browser swap it into the page.

Install
-------

[](#install)

```
composer require berry/html
```

Requires PHP 8.3+.

Docs:

Usage
-----

[](#usage)

```
