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

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

phower/html
===========

Some helper classes to generate HTML tags from PHP.

0.2.0(10y ago)076MITPHPPHP ^5.4

Since Jul 24Pushed 10y ago1 watchersCompare

[ Source](https://github.com/phower/html)[ Packagist](https://packagist.org/packages/phower/html)[ Docs](https://github.com/phower/html)[ RSS](/packages/phower-html/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (2)Versions (3)Used By (0)

Phower Html
===========

[](#phower-html)

Some helper classes to generate HTML tags from PHP.

Instalation
-----------

[](#instalation)

This package uses [Composer](https://getcomposer.org/) tool for auto-loading and dependency management. From your project root folder just run:

```
composer require phower/html

```

Dependencies
------------

[](#dependencies)

This package depends on features from the following packages:

- [phower/escaper](https://github.com/phower/escaper) - to have the generated HTML properly escaped against potential XSS attacks.

Usage
-----

[](#usage)

By definition any HTML tag must have a name and may also have attributes and a value. Tag value can be text, another tag or a mix of both.

To generate a new HTML tag with an anchor link to the Phower website using Phower\\Html just do:

```
