PHP code example of lantern-lighthouse / favfet

1. Go to this page and download the library: Download lantern-lighthouse/favfet 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/ */

    

lantern-lighthouse / favfet example snippets


use FavFet\FavFet;

// Get favicon as Base64 string
$encodedImage = FavFet::getFaviconAsBase64("https://github.com/Lantern-Lighthouse/");