packaged / glimpse
HTML Markup Helpers
Installs: 101 755
Dependents: 8
Suggesters: 0
Security: 0
Stars: 2
Watchers: 5
Forks: 2
Open Issues: 0
Requires
- php: >=7.1
- packaged/helpers: ^1.0||^2.0
- packaged/safehtml: ^2.0
- packaged/ui: ^1.0
Requires (Dev)
- phpunit/phpunit: ~7.5
- dev-master
- 2.8.0
- 2.7.1
- 2.7.0
- 2.6.5
- 2.6.4
- 2.6.3
- 2.6.2
- 2.6.1
- 2.6.0
- 2.5.3
- 2.5.2
- 2.5.1
- 2.5.0
- 2.4.0
- 2.3.0
- 2.2.16
- 2.2.15
- 2.2.14
- 2.2.13
- 2.2.12
- 2.2.11
- 2.2.10
- 2.2.9
- 2.2.8
- 2.2.7
- 2.2.6
- 2.2.5
- 2.2.4
- 2.2.3
- 2.2.2
- 2.2.1
- 2.2.0
- 2.1.3
- 2.1.2
- 2.1.1
- 2.1.0
- 2.0.0
- 2.0.0-alpha3
- 2.0.0-alpha2
- 2.0.0-alpha
- 1.0.x-dev
- 1.0.1
- 1.0.0
- 0.9.0
- 0.8.3
- 0.8.2
- 0.8.1
- 0.8.0
- 0.7.6
- 0.7.5
- 0.7.4
- 0.7.3
- 0.7.2
- 0.7.1
- 0.7.0
- 0.6.0
- 0.5.2
- 0.5.1
- 0.5.0
- 0.4.0
- 0.3.0
- 0.2.1
- 0.2.0
- 0.1.1
- 0.1.0
This package is auto-updated.
Last update: 2024-11-21 20:53:54 UTC
README
HTML Markup Helper
Usage
use Packaged\Glimpse\Core\HtmlTag;
Code
echo HtmlTag::createTag('br');
Output
<br />
Code
echo HtmlTag::createTag('img',['src' => 'x.gif']);
Output
<img src="x.gif" />
Code
echo HtmlTag::create()
->setTag('div')
->setId('dog-tag')
->addClass('dogs', 'tag',['yellow','red'])
->setAttribute('title', 'Dog Tags')
->setContent('Hey There<a href="">');
Output
<div id="dog-tag" class="dogs tag yellow red" title="Dog Tags">Hey There<a href=""></div>