dev-master
9999999-devGravatar Module.
GPL-3.0
The Development Requires
laravel gravatar
Gravatar Module.
A simple gravatar class., (*1)
require { "taskforcedev/gravatar": "1.0.*", }
composer update
Using the class is as very straightforward., (*2)
Example, (*3)
use Taskforcedev\Gravatar; $gravatar = new Gravatar(); $avatar = $gravatar->getAvatar($user, $options);
$user can be any of the following: - An array with a key containing the email address. - A Laravel User object. - A class with a getEmail() method or email property., (*4)
$options is optional - $options['secure'] - By default this is true for https but can also be set to false for http. - $options['size'] - Defaults to 100 (px), accepts any int value., (*5)
If for any reason the class fails to retrieve a gravatar false will be returned., (*6)
Gravatar Module.
GPL-3.0
laravel gravatar