Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/petrgrishin/yii-html-tag
Builder to create a html tag, an object-oriented approach
https://github.com/petrgrishin/yii-html-tag
Last synced: 23 days ago
JSON representation
Builder to create a html tag, an object-oriented approach
- Host: GitHub
- URL: https://github.com/petrgrishin/yii-html-tag
- Owner: petrgrishin
- Created: 2014-06-02T08:41:16.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-08-16T10:08:10.000Z (over 10 years ago)
- Last Synced: 2024-12-09T00:44:33.264Z (about 2 months ago)
- Language: PHP
- Size: 203 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
yii-html-tag
============Builder to create a html tag, an object-oriented approach
Installation
------------
Add a dependency to your project's composer.json:
```json
{
"require": {
"petrgrishin/yii-html-tag": "~1.0"
}
}
```Usage examples
--------------
#### Create tag
```php
use \PetrGrishin\HtmlTag\HtmlTag;$tag = HtmlTag::create(HtmlTag::TAG_DIV, array('class' => 'content'))->begin();
$tag->addClass('well');print('content');
$tag->end();
// output:content
```