SvgInlineFontAwesome
YiiRocks/SvgInlineFontAwesome
svg-inline-fontawesome provides simple functions for your Yii Framework 3 applications to add Font Awesome Icons inline and manipulate its properties.
Options
-
fai( string [, string] ) Valid name and style (optional) of a Font Awesome Icon. -
fixedWidth( bool ) Set totrueto have a fixed width icon.
Inherited options from svg-inline
-
file( string ) Valid path to a custom file. -
class( string ) Additional custom classes. -
css( array ) Additional CSS attributes. -
fill( string ) Color of the icon. -
height( int ) The height of the icon. Ifheightis given withoutwidth, the latter will be calculated from the SVG size. -
id( string ) Id for the SVG tag. -
title( string ) Sets a title to the SVG output. -
width( int ) The width of the icon. Ifwidthis given withoutheight, the latter will be calculated from the SVG size.
Examples
echo $svg->fai('hands-wash')->title('Wash your hands');
echo $svg->fai('github', 'brands')->title('GitHub');