PHP code example of jejje / gravatar

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

    

jejje / gravatar example snippets


'providers' => [
    'Jejje\Gravatar\GravatarServiceProvider::class'
];

public function index() {
    $email = '[email protected]';
    $size = 100; // Optional, you may set a default in the config file
    Gravatar::getImageWithLinkToProfile($email, $size);
}