PHP code example of apsonex / laravel-font

1. Go to this page and download the library: Download apsonex/laravel-font 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/ */

    

apsonex / laravel-font example snippets


use Apsonex\LaravelFont\Facades\LaravelFont;

$manager = LaravelFont::bunny();

$manager = app(\Apsonex\LaravelFont\LaravelFontManager::class)->bunny();

$manager->bunny();

$manager->list(limit: 20, page: 1);

$manager->search(keyword: 'abo', limit: 20, page: 1);

$manager->findByKey('abel');

$manager->findByKeys(['abel', 'aboreto'], limit: 10);

$manager->findByFamily('Abel', limit: 10);

$manager->findByFamilies(['Abel', 'Aboreto'], limit: 10);

$manager->findByType('sans-serif', limit: -1); // -1 to get all

FontDTO {
    string $key         // "abel"
    string $provider    // "bunny"
    string $category    // "sans-serif"
    string $family      // "Abel"
    string $urlString   // "abel:400,400i"
}