PHP code example of wapplersystems / font-downloader

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

    

wapplersystems / font-downloader example snippets




declare(strict_types=1);

namespace Vendor\MyExtension\FontLoader;

use WapplerSystems\FontDownloader\FontLoader\AbstractFontLoader;

class MyFontLoader extends AbstractFontLoader
{
    protected string $identifier = 'myprovider';

    public function isResponsible(string $url): bool
    {
        return str_contains($url, 'myprovider.com');
    }
}