Laravel 5 – Gravatar Package
As a part of an Tutorial series I wrote this basic Gravatar package for Laravel 5 just to show how one would go about making your own package from start to publishing it to Packagist. It only contains a few basic methods you can call, retrieving the URL to Gravatar with your e-mail hashed.
Tutorial
Source and Packagist
Usage example
public function index() {
$email = '[email protected]';
$size = 100; // Optional, you may set a default in the config file
Gravatar::getImageWithLinkToProfile($email, $size);
}