PHP code example of mtr-design / laravel-logo-fetcher

1. Go to this page and download the library: Download mtr-design/laravel-logo-fetcher 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/ */

    

mtr-design / laravel-logo-fetcher example snippets


MTRDesign\LaravelLogoFetcher\ServiceProvider::class,

$logoFetcher = app(\MTRDesign\LaravelLogoFetcher\LogoFetcher::class);
$logoFetcher->provider(Clearbit::class)
    ->fetch($domain)
    ->store();

$logoFetcher = app(\MTRDesign\LaravelLogoFetcher\LogoFetcher::class);
$logo = $logoFetcher
    ->provider(Clearbit::class)
    ->fetch($domain)
    ->logo;

$path = $this->logoFetcher
    ->provider(Clearbit::class)
    ->domain($domain)
    ->fetch()
    ->store()
    ->path;
shell
php artisan vendor:publish --provider="MTRDesign\LaravelLogoFetcher\ServiceProvider"