PHP code example of blockpoint / laravel-favicon-generator

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

    

blockpoint / laravel-favicon-generator example snippets


use Blockpoint\LaravelFaviconGenerator\LaravelFaviconGenerator;

$generator = new LaravelFaviconGenerator();
$generatedFiles = $generator->generate('path/to/your/source/image.png');
bash
php artisan vendor:publish --tag="laravel-favicon-generator-config"
bash
php artisan vendor:publish --tag="laravel-favicon-generator-views"