PHP code example of umpirsky / gravatar
1. Go to this page and download the library: Download umpirsky/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/ */
umpirsky / gravatar example snippets
print((new Gravatar\Gravatar())->getUrl('[email protected]'));
// Outputs:
// http://www.gravatar.com/avatar/71a0abb69d81544d7cb390e186d5d123
$gravatar = new Gravatar\Gravatar(array(
'size' => 120,
'rating' => 'x',
));
print($gravatar)->getUrl('[email protected]'));
// Outputs:
// http://www.gravatar.com/avatar/71a0abb69d81544d7cb390e186d5d123?size=120&rating=x