PHP code example of innovato / font-awesome-5-lite
1. Go to this page and download the library: Download innovato/font-awesome-5-lite 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/ */
innovato / font-awesome-5-lite example snippets
te = new Innovato\FaLite();
$faLite->execute($_GET['icons']);
te = new Innovato\FaLite();
$faLite->cacheEnabled = true; // Default true
$faLite->cacheDirectory = '../files/cache';
$faLite->filesDirectory = '../files';
$faLite->types = [
'fab' => 'fa-brands',
'fal' => 'fa-light',
'far' => 'fa-regular',
'fas' => 'fa-solid'
];
$faLite->execute($_GET['icons']);
server {
...
rewrite ^/font-awesome-lite\.js$ /examples/example_minimal.php;
...
}