PHP code example of mikielis / gravatar

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

    

mikielis / gravatar example snippets


composer 

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

'aliases' => [
    'Gravatar' => Mikielis\Gravatar\Facades\Gravatar::class,
];

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

    Gravatar::getUrl('[email protected]', 100);

    Gravatar::getUrls(['[email protected]', '[email protected]', '[email protected]']);

     Gravatar::getUrls(['[email protected]', '[email protected]', '[email protected]'], 60);