1. Go to this page and download the library: Download awps/font-awesome-php library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
awps / font-awesome-php example snippets
composer
// Using the reader to dynamically get the icons array. It's resource intensive and you must cache the result.
$css_path = __DIR__ . '/css/font-awesome.css';
$icons = new Awps\FontAwesomeReader( $css_path );
// .... or better use the static class
$icons = new Awps\FontAwesome();