PHP Class for generating Font Awesome icons.

v1.0 2015-02-05 14:40 UTC

README

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

How to use

First use the namespace:

use Del\Icon;

Make sure you are using FontAwesome. Stick this in your <head> section:

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

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

Simplest use

<?= Icon::UNIVERSITY ;?>

Adding extra classes

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

Adding extra classes, and a space( ) following it

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