2017 © Pedro Peláez
 

library html

Illuminate/Html extension

image

vjandrea/html

Illuminate/Html extension

  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 7 Versions
  • 0 % Grown

The README.md

HtmlBuilder extension

Build Status, (*1)

This packages adds some missing methods to Illuminate/Html for Laravel 4, (*2)

Methods

  • favicon()
  • meta_charset()
  • html()
  • title()
  • h1()
  • h2()
  • h3()
  • h4()
  • h5()
  • h6()
  • heading()
  • iframe()
  • youtube_iframe()
  • vimeo_iframe()
  • video()
  • audio()

Installation

Add to composer.json:, (*3)

"vjandrea/html": "dev-master"

and add to the 'providers' array in app/config/app.php, (*4)

'Vjandrea\Html\HtmlServiceProvider' 

Run composer install and you're ready to use the package., (*5)

Usage

favicon

Returns a favicon link to the specified image href, (*6)

HTML::favicon($href, $type)

Parameters, (*7)

string  $href   default ''
string  $type   default 'image/x-icon'

Returns, (*8)

string

meta_charset

Returns a meta charset tag, (*9)

HTML::meta_charset($charset)

Parameters, (*10)

string  $charset    default 'utf-8'

Returns, (*11)

string

html

Returns an html with lang parameter, (*12)

HTML::html($lang)

Parameters, (*13)

string  $lang   default ''

Returns, (*14)

string

title

Returns a title tag, (*15)

HTML::title($title)

Parameters, (*16)

string  $title  default ''

Returns, (*17)

string

h1

Returns a h1 heading, (*18)

HTML::h1($title, $attributes)

Parameters, (*19)

string  $title  default ''
array   $attributes default []

Returns, (*20)

string

h2

Returns a h2 heading, (*21)

HTML::h2($title, $attributes)

Parameters, (*22)

string  $title  default ''
array   $attributes default []

Returns, (*23)

string

h3

Returns a h3 heading, (*24)

HTML::h3($title, $attributes)

Parameters, (*25)

string  $title  default ''
array   $attributes default []

Returns, (*26)

string

h4

Returns a h4 heading, (*27)

HTML::h4($title, $attributes)

Parameters, (*28)

string  $title  default ''
array   $attributes default []

Returns, (*29)

string

h5

Returns a h5 heading, (*30)

HTML::h5($title, $attributes)

Parameters, (*31)

string  $title  default ''
array   $attributes default []

Returns, (*32)

string

h6

Returns a h6 heading, (*33)

HTML::h6($title, $attributes)

Parameters, (*34)

string  $title  default ''
array   $attributes default []

Returns, (*35)

string

heading

Returns a heading, (*36)

HTML::heading($type, $title, $attributes)

Parameters, (*37)

string  $type   default 'h1'
string  $title  default ''
array   $attributes default []

Returns, (*38)

string

iframe

Returns an <iframe> tag, (*39)

HTML::iframe($src, $attributes)

Parameters, (*40)

string  $src    default ''
array   $attributes default []

Returns, (*41)

string

youtube_iframe

Returns a YouTube <iframe> tag By default it sets frameborder=0 and allowfullscreen, (*42)

HTML::youtube_iframe($youtube_id, $attributes, $allow_fullscreen, $frameborder)

Parameters, (*43)

string  $youtube_id default ''
array   $attributes default []
boolean $allow_fullscreen   default true
boolean $frameborder    default false (deprecated in HTML5)

Returns, (*44)

string

vimeo_iframe

Returns a Vimeo <iframe> tag, (*45)

HTML::vimeo_iframe($vimeo_id, $attributes, $allow_fullscreen, $frameborder, $title, $byline, $portrait)

Parameters, (*46)

string  $vimeo_id   default ''
array   $attributes default ''
boolean $allowfullscreen    default true
boolean $frameborder    default false (deprecated in HTML5)
boolean $title  default false (Vimeo option)
boolean $byline default false (Vimeo option)
boolean $portrait   default false (Vimeo option)

Returns, (*47)

string

video

Returns a <video> tag, (*48)

HTML::video($src, $attributes)

Parameters, (*49)

mixed   $src    default ''

Returns, (*50)

string

audio

Returns an <audio> tag, (*51)

HTML::audio($src, $attributes)

Parameters, (*52)

mixed   $src    default '' (it may be an array)
array   $attributes default []

Returns, (*53)

string

The Versions

13/08 2015

dev-dev

dev-dev

Illuminate/Html extension

  Sources   Download

MIT

The Requires

 

28/08 2014

dev-master

9999999-dev

Illuminate/Html extension

  Sources   Download

MIT

The Requires

 

28/08 2014

v1.2.0

1.2.0.0

Illuminate/Html extension

  Sources   Download

MIT

The Requires

 

28/08 2014

v1.1.2

1.1.2.0

Illuminate/Html extension

  Sources   Download

MIT

The Requires

 

28/08 2014

v1.1.1

1.1.1.0

Illuminate/Html extension

  Sources   Download

MIT

The Requires

 

28/08 2014

v1.1.0

1.1.0.0

Illuminate/Html extension

  Sources   Download

MIT

The Requires

 

26/08 2014

v1.0.0

1.0.0.0

Illuminate/Html extension

  Sources   Download

MIT

The Requires