Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Laravel Gravatar Laravel Package

tomshaw/laravel-gravatar

View on GitHub
Deep Wiki
Context7

Laravel Gravatar 📸

A zero config named parameter Laravel Gravatar Directive.

GitHub Workflow Status issues forks stars GitHub license

Installation

You can install the package via composer:

composer require tomshaw/laravel-gravatar

Usage

Configure the Gravatar Image where you plan on utilizing it.

<img src="@gravatar(email: 'email@example.com', size: 60, default: 'retro', rating: 'g')" />

This generates an 60 pixels retro style image with a g 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 is 60. Must be between 1 and 2048.

  • $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 is true.

  • $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

  • PHP 8.5
  • Laravel 13.0

License

The MIT License (MIT). See License File for more information.

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
comsave/common
alecsammon/php-raml-parser
chrome-php/wrench
lendable/composer-license-checker
typhoon/reflection
mesilov/moneyphp-percentage
mike42/gfx-php
bookdown/themes
aura/view
aura/html
aura/cli
povils/phpmnd
nayjest/manipulator
omnipay/tests
psr-mock/http-message-implementation
psr-mock/http-factory-implementation
psr-mock/http-client-implementation
voku/email-check
voku/urlify
rtheunissen/guzzle-log-middleware