2017 © Pedro Peláez
 

library htmlhelper

Simple secure HtmlHelper

image

iakio/htmlhelper

Simple secure HtmlHelper

  • Tuesday, January 13, 2015
  • by iakio
  • Repository
  • 1 Watchers
  • 0 Stars
  • 32 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

HtmlHelper

Build Status, (*1)

Simple secure HtmlHelper., (*2)

Features:

  • Auto escaping.
  • Fluent interface.

Usage:

<?php
require 'vendor/autoload.php';

use iakio\htmlhelper\HtmlHelper;

$html = new HtmlHelper;

echo $html->h1('Hello, World'), "\n";       // instance method
// 

Hello, World

echo HtmlHelper::h1('Hello, World'), "\n"; // or static method //

Hello, World

echo HtmlHelper::a('set attributes', ['href' => 'http://github.com']), "\n"; // <a href="http://github.com">set attributes</a> echo HtmlHelper::a() ->append('fluent') ->append(' interface') ->attr('href', 'http://github.com'), "\n"; // <a href="http://github.com">fluent interface</a> echo HtmlHelper::span(['Auto <escape>', HtmlHelper::i('& nested tag')]), "\n"; // <span>Auto &lt;escape&gt;<i>&amp; nested tag</i></span>

The Versions

13/01 2015

dev-master

9999999-dev https://github.com/iakio/htmlhelper

Simple secure HtmlHelper

  Sources   Download

MIT

The Development Requires

by ISHIDA Akio

html

09/05 2014

0.1.0

0.1.0.0 https://github.com/iakio/htmlhelper

Simple secure HtmlHelper

  Sources   Download

MIT

The Development Requires

by ISHIDA Akio

html