ditoskas / fontawesome-builder
Wrapper for php to create html for fontawesome library
Installs: 15
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/ditoskas/fontawesome-builder
Requires
- php: >=5.6
Requires (Dev)
- phpunit/phpunit: ^5.7.14|^6.0
This package is not auto-updated.
Last update: 2025-10-12 11:00:02 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