sukohi/kuku

There is no license information available for the latest version (dev-master) of this package.

Maintainers

Details

github.com/SUKOHI/Kuku

Source

Issues

Installs: 19

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/sukohi/kuku

dev-master 2014-10-05 08:05 UTC

This package is not auto-updated.

Last update: 2025-09-27 22:59:34 UTC


README

A PHP package mainly developed for Laravel to generate HTML tags that have raw text.

Installation&setting for Laravel

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

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

Also

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

Usage

Label

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

Label with options

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

Link

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

Link with attributes

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

Link Route

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

Link Route with parameters and attributes

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