2017 © Pedro Peláez
 

library kuku

image

sukohi/kuku

  • Sunday, October 5, 2014
  • by Sukohi
  • Repository
  • 1 Watchers
  • 0 Stars
  • 13 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Kuku

A PHP package mainly developed for Laravel to generate HTML tags that have raw text., (*1)

Installation&setting for Laravel

After installation using composer, add the followings to the array in app/config/app.php, (*2)

'providers' => array(  
    ...Others...,  
    'Sukohi\Kuku\KukuServiceProvider',
)

Also, (*3)

'aliases' => array(  
    ...Others...,  
    'Kuku' => 'Sukohi\Kuku\Facades\Kuku',
)

Usage

Label, (*4)

{{ Kuku::label('name', '<i class="fa fa-home"></i> LABEL') }} 

Label with options, (*5)

{{ Kuku::label('name', '<i class="fa fa-home"></i> LABEL', ['class' => 'text-danger']) }}

Link, (*6)

{{ Kuku::link('url', '<i class="fa fa-home"></i> TEXT') }}

Link with attributes, (*7)

{{ Kuku::link('url', '<i class="fa fa-home"></i> TEXT', ['class' => 'text-danger']) }} 

Link Route, (*8)

{{ Kuku::linkRoute('home.kuku', '<i class="fa fa-home"></i> TEXT') }}

Link Route with parameters and attributes, (*9)

{{ Kuku::linkRoute('home.kuku', '<i class="fa fa-home"></i> TEXT', [$id], ['class' => 'text-danger']) }}

The Versions

05/10 2014

dev-master

9999999-dev

  Sources   Download

The Requires

 

by Avatar Sukohi