PHP code example of kevindierkx / gravatar-helper

1. Go to this page and download the library: Download kevindierkx/gravatar-helper 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/ */

    

kevindierkx / gravatar-helper example snippets


composer 

'providers' => [
    Kevindierkx\GravatarHelper\Providers\LaravelServiceProvider::class,
]

'aliases' => [
    'Gravatar' => Kevindierkx\GravatarHelper\Providers\Facades\Gravatar::class,
]

php artisan vendor:publish

Gravatar::image('[email protected]');

// <img src="https://secure.gravatar.com/avatar/5658ffccee7f0ebfda2b226238b1eb6e?s=80&r=g&d=404">

Gravatar::url('[email protected]');

// https://secure.gravatar.com/avatar/5658ffccee7f0ebfda2b226238b1eb6e?s=80&r=g&d=404
app/config/app.php