PHP code example of log1x / laravel-webfonts
1. Go to this page and download the library: Download log1x/laravel-webfonts 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/ */
log1x / laravel-webfonts example snippets
use Log1x\LaravelWebfonts\Facades\Webfonts;
// Retrieve an array of compiled font paths.
$fonts = Webfonts::fonts();
// Build the font preload HTML markup.
$html = Webfonts::preload()->build();