Download the PHP package tomshaw/laravel-gravatar without Composer
On this page you can find all versions of the php package tomshaw/laravel-gravatar. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download tomshaw/laravel-gravatar
More information about tomshaw/laravel-gravatar
Files in tomshaw/laravel-gravatar
Package laravel-gravatar
Short Description A zero config named parameter Laravel Gravatar Directive.
License MIT
Homepage https://github.com/tomshaw/laravel-gravatar
Informations about the package laravel-gravatar
Laravel Gravatar 📸
A zero config named parameter Laravel Gravatar Directive.
Installation
You can install the package via composer:
Usage
Configure the Gravatar Image where you plan on utilizing it.
This generates an
60
pixelsretro
style image with ag
rating.
Parameters
The default parameters are described below:
-
$email
(string): The email address of the user. This is required. -
$size
(int): The size of the Gravatar image in pixels. Default is60
. Must be between1
and2048
. -
$default
(string): The default image to display if the user doesn't have a Gravatar. Default is'mp'
. Options include:'mp'
,'identicon'
,'monsterid'
,'wavatar'
,'retro'
,'robohash'
,'blank'
. -
$rating
(string): The rating of the Gravatar image. Default is'g'
. Options include:'g'
,'pg'
,'r'
,'x'
. -
$secure
(bool): Whether to use the secure Gravatar URL. Default istrue
. -
$forceDefault
(string): Whether to always load the default image. Default is'n'
. $forceExtension
(string): The file extension for the Gravatar image. Default is'jpg'
.
Requirements
The package is compatible with PHP 8 or later.
License
The MIT License (MIT). See License File for more information.