jjok/html

This package is abandoned and no longer maintained. No replacement package was suggested.

0.1.0 2013-12-19 16:16 UTC

This package is not auto-updated.

Last update: 2020-01-24 15:45:26 UTC


README

Build Status

Examples

use jjok\HTML\SelfClosingElement;

echo new SelfClosingElement(
	'img',
	array(
		'src' => 'some-image.png',
		'alt' => 'My image',
		'width' => '400',
		'height' => '300'
	)
);

// <img src="some-image.png" alt="My image" width="400" height="300"/>


use jjok\HTML\Element;

echo new Element(
	'span',
	'Some text content',
	array(
		'class' => 'my-class'
	)
);

// <span class="my-class">Some text content</span>

Copyright (c) 2013 Jonathan Jefferies