PHP code example of ryangjchandler / laravel-bunny-fonts
1. Go to this page and download the library: Download ryangjchandler/laravel-bunny-fonts 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/ */
ryangjchandler / laravel-bunny-fonts example snippets
use RyanChandler\BunnyFonts\Facades\BunnyFonts;
use RyanChandler\BunnyFonts\FontFamily;
public function boot()
{
BunnyFonts::add(FontFamily::AbhayaLibre, weights: [400, 500, 600])
->add(FontFamily::FiraCode, weights: [
400
]);
}
public function boot()
{
BunnyFonts::set('shop')
->add(FontFamily::Inter, [400, 500, 700]);
}