Downloads
Stars
Version
A simple gravatar class.
require {
"taskforcedev/gravatar": "1.0.*",
}
composer update
Using the class is as very straightforward.
Example
use Taskforcedev\Gravatar;
$gravatar = new Gravatar();
$avatar = $gravatar->getAvatar($user, $options);
$user can be any of the following:
$options is optional
If for any reason the class fails to retrieve a gravatar false will be returned.