2017 © Pedro Peláez
 

library icon

PHP Class for generating Font Awesome icons.

image

delboy1978uk/icon

PHP Class for generating Font Awesome icons.

  • Thursday, February 5, 2015
  • by delboy1978uk
  • Repository
  • 1 Watchers
  • 1 Stars
  • 625 Installations
  • PHP
  • 2 Dependents
  • 1 Suggesters
  • 1 Forks
  • 0 Open issues
  • 2 Versions
  • 9 % Grown

The README.md

icon

PHP Class for generating Font Awesome icons. (now using v4.3.0!), (*1)

How to use

First use the namespace:
, (*2)

use Del\Icon;

Make sure you are using FontAwesome. Stick this in your <head> section:
, (*3)

<?= Icon::fontAwesomeHeadCssLink(); ?>

Or you can pass in the version number, (*4)

<?= Icon::fontAwesomeHeadCssLink('4.7.1'); ?>

That will generate the CSS tag:
<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css" rel="stylesheet">, (*5)

Simplest use, (*6)

<?= Icon::UNIVERSITY ;?>

Adding extra classes, (*7)

<?= Icon::custom(Icon::UNIVERSITY,'fa-5x'); ?>

Adding extra classes, and a space( ) following it, (*8)

<?= Icon::custom(Icon::UNIVERSITY,'fa-5x',true); ?>

The Versions

05/02 2015

dev-master

9999999-dev

PHP Class for generating Font Awesome icons.

  Sources   Download

GPL-2.0

by Derek McLean

05/02 2015

v1.0

1.0.0.0

PHP Class for generating Font Awesome icons.

  Sources   Download

GPL-2.0

by Derek McLean