SvgInline

SvgInline

Inline SVG file manipulation

Font Awesome Icons

Provides simple functions to add Font Awesome Icons inline. Depends on SvgInline.

$svg->fai($iconName);
$svg->fai($iconName, $iconStyle);

Options

fai string [, string]
Name required; style 'solid'
Valid name and style (optional) of a Font Awesome Icon.
fixedWidth bool
false
Set to true to have a fixed width icon.

Examples

echo $svg->fai('hands-wash')->title('Wash your hands');
echo $svg->fai('github', 'brands')->title('GitHub');

Support

Create an issue →
Packagist Version PHP Version Downloads Last Commit GitHub Workflow Status