This package is used to generate a gravatar url for Laravel 8 applications.
You can install the package via composer:
composer require shamarkellman/gravatar
You can publish and run the migrations with:
You can publish the config file with:
php artisan vendor:publish --provider="ShamarKellman\Gravatar\GravatarServiceProvider" --tag="gravatar-config"
This is the contents of the published config file:
return [
'size' => 80,
'max_rating' => 'g',
'default_image' => 'mp',
'always_force_default_image' => false,
];
$gravatar = new ShamarKellman\Gravatar();
echo $gravatar->buildGravatarURL();
or use the Facade
use ShamarKellman\Gravatar\Facades\Gravatar;
Gravatar::buildGravatarURL();
composer test
Please see CHANGELOG for more information on what has changed recently.
Please see CONTRIBUTING for details.
Please review our security policy on how to report security vulnerabilities.
The MIT License (MIT). Please see License File for more information.