awcodes/filament-gravatar

Replace Filament's default avatar url provider with one for Gravatar.
226,087 32
Install
composer require awcodes/filament-gravatar
Latest Version:v4.2.0
PHP:^8.2
License:MIT
Last Updated:Aug 16, 2026
Links: GitHub  ·  Packagist
Maintainer: awcodes

Filament Gravatar

Replace Filament's default avatar url provider with one for Gravatar.

Latest Version MIT Licensed Total Downloads GitHub Repo stars

Compatibility

Package Version Filament Version
1.x 2.x
2.x 3.x
3.x 4.x
4.x 4.x & 5.x

Installation

First, install the plugin with composer.

composer require awcodes/filament-gravatar

Next, add the GravatarProvider to your panel.

use Awcodes\Gravatar\GravatarProvider;
use Awcodes\Gravatar\GravatarPlugin;

public function panel(Panel $panel): Panel
{
    return $panel
        ->defaultAvatarProvider(GravatarProvider::class)
        ->plugins([
            GravatarPlugin::make(),
        ])
}

Global Defaults

You can modify the global defaults by using the following methods on the GravatarPlugin.

use Awcodes\Gravatar\GravatarPlugin;

public function panel(Panel $panel): Panel
{
    return $panel
        ->plugins([
            GravatarPlugin::make()
                ->default('robohash')
                ->size(200)
                ->rating('pg'),
        ])
}

Additional Info

You can also use the Awcodes\Gravatar\Gravatar class by itself should you need to outside a panel.

Awcodes\Gravatar\Gravatar::get(
    string $email = null,
    int $size = 80,
    string $default = 'mp',
    string $rating = 'g',
    bool $asImage = false,
    array $attributes = []
);

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

The MIT License (MIT). Please see License File for more information.

Related Packages

awcodes/overlook

A Filament plugin that adds an app overview widget to your admin panel.

225,905 193
awcodes/filament-badgeable-column

Filament Tables column to append and prepend badges.

638,558 147
awcodes/filament-table-repeater

A modified version of the Filament Forms Repeater to display it as a table.

960,939 267
awcodes/matinee

OEmbed field for Filament Panel and Form Builders.

10,020 22
awcodes/light-switch

Plugin to add theme switching (light/dark/system) to the auth pages for Filament...

124,148 48