2017 © Pedro Peláez
 

library foundicons

Integrate Zurb's Foundation icons into your Laravel project

image

luckydevshop/foundicons

Integrate Zurb's Foundation icons into your Laravel project

  • Friday, September 12, 2014
  • by luckydev
  • Repository
  • 1 Watchers
  • 1 Stars
  • 7 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Zurb's Foundation Icons

This package provides a method to generate marukp that uses Zurb's Foundation Icon Font. This was developed with Laravel in mind. If you find any bugs, please let me know via issue report on GitHub., (*1)

Installation

To install through Composer, add this to your project's composer.json file:, (*2)

"require": {
    "luckydevshop/foundicons": "1.*"
}

After you have added this to your composer file, run a composer update in your project's root directory:, (*3)

composer update

Once that is complete you may add two lines to your application's configuration. This will alias the term Icon to this package., (*4)

In the provider's array add this line:, (*5)

'LuckyDevShop\Foundicons\FoundiconsServiceProvider'

And in the alias array:, (*6)

'Icon' => 'LuckyDevShop\Foundicons\Icon'

Usage

To create the markup for an icon, use the following example in your blade file:, (*7)

{{ Icon::cloud() }}

Which will produce:, (*8)

<i class="fi-cloud"></i>

If you did not use the aliases as previously mentioned, you will have to use the full namespace in your blade template:, (*9)

{{ LuckyDevShop\Foundicons\Icon::cloud() }}

Hyphenated classes

If there is a icon class that uses a hyphen, e.g. play-video, you would create the markup using an underscore:, (*10)

{{ Icon::play_video() }}

Which will produce:, (*11)

<i class="fi-play-video"></i>

Additional classes

If you need to pass additional classes to be put on the <i> element:, (*12)

{{ Icon::wrench('foo', 'bar') }}

Which will produce:, (*13)

<i class="fi-wrench foo bar"></i>

The Versions

12/09 2014

dev-master

9999999-dev https://github.com/luckydevshop/foundicons

Integrate Zurb's Foundation icons into your Laravel project

  Sources   Download

MIT

The Requires

 

by Brian J. Rogers

laravel foundation icons zurb

23/07 2014

1.0.x-dev

1.0.9999999.9999999-dev https://github.com/luckydevshop/foundicons

Integrate Zurb's Foundation icons into your Laravel project

  Sources   Download

MIT

The Requires

 

by Brian J. Rogers

laravel foundation icons zurb