Skip to content

ditoskas/fontawesome-builder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fontawesome-builder

Render the font-awesome icons using php

Add to the composer.json file the below repository and require section to install the library

  {
    "require": {
      "ditoskas/fontawesome-builder": "dev-master"
    }
  }

or run

composer require ditoskas/fontawesome-builder

To use the library on the project, add the use statement, declare a FaIcon model or use the static FontAwesomeBuilder and call the icon function.

<?php
use \FontAwesomeBuilder\Models\FaIcon;

$faIcon = new FaIcon();
echo $faIcon->create()->icon(FontAwesomeClassEnum::STROOPWAFEL);

Check the documentation page with more examples