PHP code example of shamarkellman / gravatar

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

    

shamarkellman / gravatar example snippets


return [
    'size' => 80,
    'max_rating' => 'g',
    'default_image' => 'mp',
    'always_force_default_image' => false,
];

$gravatar = new ShamarKellman\Gravatar();
echo $gravatar->buildGravatarURL();

use ShamarKellman\Gravatar\Facades\Gravatar;

Gravatar::buildGravatarURL();
bash
php artisan vendor:publish --provider="ShamarKellman\Gravatar\GravatarServiceProvider" --tag="gravatar-config"