PHPackages                             drupol/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. [Utility &amp; Helpers](/categories/utility)
4. /
5. drupol/htmltag

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

drupol/htmltag
==============

A fast and extensible helper library for generating HTML, create tags, their attributes and content.

2.2.3(6y ago)116084[1 issues](https://github.com/drupol/htmltag/issues)MITPHPPHP &gt;= 5.6

Since Nov 22Pushed 5y ago1 watchersCompare

[ Source](https://github.com/drupol/htmltag)[ Packagist](https://packagist.org/packages/drupol/htmltag)[ RSS](/packages/drupol-htmltag/feed)WikiDiscussions master Synced yesterday

READMEChangelog (7)Dependencies (8)Versions (16)Used By (0)

[![Latest Stable Version](https://camo.githubusercontent.com/988117e3a8345dc5463d032a131989a2c1d0dda7aa4e5afe90af773d259b7c89/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f647275706f6c2f68746d6c7461672e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/drupol/htmltag)[![GitHub stars](https://camo.githubusercontent.com/e2ea0313d89d48333b897d2c24e3884336cc45b863e6fba963b851672bc96892/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f647275706f6c2f68746d6c7461672e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/drupol/htmltag)[![Total Downloads](https://camo.githubusercontent.com/87136254e7deab225cd1a284e9fd8c8947dac62a6e92627b49c77c5487c50157/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f647275706f6c2f68746d6c7461672e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/drupol/htmltag)[![GitHub Workflow Status](https://camo.githubusercontent.com/14a11872ad5341b2f689d58e1676fdb7af4436ad54c37fecb2291a3bbb6c2e81/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f647275706f6c2f68746d6c7461672f436f6e74696e756f7573253230496e746567726174696f6e3f7374796c653d666c61742d737175617265)](https://github.com/drupol/htmltag/actions)[![Scrutinizer code quality](https://camo.githubusercontent.com/a1b5b183c110ae37944c9e61aa988bdf27672684cee7ae139b68f6816d4c51f6/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f7175616c6974792f672f647275706f6c2f68746d6c7461672f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/drupol/htmltag/?branch=master)[![Type Coverage](https://camo.githubusercontent.com/f6b508f18ba726d6771ff6efdcf6bb2a2f602c765e5afba7ebd5abfc36491049/68747470733a2f2f73686570686572642e6465762f6769746875622f647275706f6c2f68746d6c7461672f636f7665726167652e737667)](https://shepherd.dev/github/drupol/htmltag)[![Code Coverage](https://camo.githubusercontent.com/8be57766bffdfb69255e53a678776622b9ec34d8b452c2db03ead0e27c93683c/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f647275706f6c2f68746d6c7461672f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/drupol/htmltag/?branch=master)[![License](https://camo.githubusercontent.com/07e82a3ec5c67f3b9fb2743308d33ff6037faece81b98fc29733a0a1d7cf5e4a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f647275706f6c2f68746d6c7461672e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/drupol/htmltag)[![Donate!](https://camo.githubusercontent.com/a71f45de7e408be2477113d166e9ee94c90bbf814a1373fd154aa5b6652302de/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f53706f6e736f722d4769746875622d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](https://github.com/sponsors/drupol)[![Donate!](https://camo.githubusercontent.com/cd335a74177c62640acfbb95db4f1848f818606fdf17dc36aed4eef93061dc10/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f53706f6e736f722d50617970616c2d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](https://www.paypal.me/drupol)

HTMLTag
=======

[](#htmltag)

Description
-----------

[](#description)

This is a PHP library that handles the generation of HTML tags, their attributes and content.

The focus is on security, speed and usability.

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

[](#requirements)

- PHP &gt;= 7.1.3

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

[](#installation)

`composer require drupol/htmltag`

Usage
-----

[](#usage)

```
