ditoskas/fontawesome-builder

Wrapper for php to create html for fontawesome library

v1.0 2018-08-26 17:21 UTC

This package is not auto-updated.

Last update: 2024-04-28 03:30:52 UTC


README

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