jjok/html

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

Installs: 19

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/jjok/html

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