petrgrishin / yii-html-tag
Builder to create a html tag, an object-oriented approach
Installs: 81
Dependents: 4
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
pkg:composer/petrgrishin/yii-html-tag
Requires
- php: >=5.3.0
- yiisoft/yii: ~1.1
Requires (Dev)
This package is not auto-updated.
Last update: 2025-09-27 21:36:28 UTC
README
Builder to create a html tag, an object-oriented approach
Installation
Add a dependency to your project's composer.json:
{ "require": { "petrgrishin/yii-html-tag": "~1.0" } }
Usage examples
Create tag
use \PetrGrishin\HtmlTag\HtmlTag; $tag = HtmlTag::create(HtmlTag::TAG_DIV, array('class' => 'content'))->begin(); $tag->addClass('well'); print('content'); $tag->end(); // output: <div class="content well">content</div>