PHPackages                             belniakmedia/craft-gravatar - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Templating &amp; Views](/categories/templating)
4. /
5. belniakmedia/craft-gravatar

ActiveCraft-plugin[Templating &amp; Views](/categories/templating)

belniakmedia/craft-gravatar
===========================

Adds gravatar support to twig templates (Direct replacement of noxify/craft-gravatar compatible with Craft4).

1.0.1(3y ago)017MITPHPPHP ^8.0.2

Since Nov 18Pushed 3y agoCompare

[ Source](https://github.com/BelniakMedia/craft-gravatar)[ Packagist](https://packagist.org/packages/belniakmedia/craft-gravatar)[ RSS](/packages/belniakmedia-craft-gravatar/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (1)Versions (3)Used By (0)

Gravatar plugin for Craft CMS 4.x
=================================

[](#gravatar-plugin-for-craft-cms-4x)

Adds gravatar support to CraftCMS twig templates.

**This project is a fork of public archive [noxify/craft-gravatar](https://github.com/noxify/craft-gravatar), which has been updated to be compatible with Craft4 and was created due to the "public archive" status of the forked repo.**

Requirements
------------

[](#requirements)

This plugin requires PHP8 &amp; Craft CMS 4.0.0 or later.

Installation
------------

[](#installation)

Install via the [CraftCMS Plugin Store](https://plugins.craftcms.com/)
Or on the command line (from the project root directory):

```
composer require belniakmedia/craft-gravatar
php craft plugin/install

```

Configuring Gravatar
--------------------

[](#configuring-gravatar)

The plugins allows you to configure the following settings:

**Directly from your CP:**

> - Gravatar URL ( `default: //gravatar.com/avatar/` )
> - Size ( `default: 80` )
> - Rating ( `default: mp` )
> - Default Avatar ( `default: mp` )

**Via project config file:**

> See `config.php` in the plugin root folder for more information.

Detailed instructions what are the allowed values are defined here:

Using Gravatar
--------------

[](#using-gravatar)

### Get the Gravatar URL with default settings

[](#get-the-gravatar-url-with-default-settings)

```
{{ craft.gravatar.url( 'hello@example.com' ) }}

```

### Get the Gravatar URL with custom settings

[](#get-the-gravatar-url-with-custom-settings)

```
{{ craft.gravatar.url( 'hello@example.com', {'s' : 120, 'd': 'identicon', 'r' : 'x'} ) }}

```

### Get the Gravatar IMG with default settings

[](#get-the-gravatar-img-with-default-settings)

```
{{ craft.gravatar.img( 'hello@example.com' ) }}

```

### Get the Gravatar IMG with custom settings

[](#get-the-gravatar-img-with-custom-settings)

```
{{ craft.gravatar.img( 'hello@example.com', {'s' : 120, 'd': 'identicon', 'r' : 'x'} ) }}

```

### Get the Gravatar IMG with custom settings and attributes

[](#get-the-gravatar-img-with-custom-settings-and-attributes)

```
{{ craft.gravatar.img( 'hello@example.com', {'s': 120}, {'class' : 'useravatar'} ) }}

```

Brought to you by [Belniak Media](https://github.com/BelniakMedia)

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 83.3% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

2

Last Release

1271d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/ebaede952a8bd243632f06aee5b30c529503a33ad07ddb59941f9c45898c883a?d=identicon)[RickKukiela](/maintainers/RickKukiela)

---

Top Contributors

[![RickKukiela](https://avatars.githubusercontent.com/u/3813238?v=4)](https://github.com/RickKukiela "RickKukiela (5 commits)")[![noxify](https://avatars.githubusercontent.com/u/521777?v=4)](https://github.com/noxify "noxify (1 commits)")

---

Tags

twigcmsgravatarCraftcraftcmscraft-plugin

### Embed Badge

![Health badge](/badges/belniakmedia-craft-gravatar/health.svg)

```
[![Health](https://phpackages.com/badges/belniakmedia-craft-gravatar/health.svg)](https://phpackages.com/packages/belniakmedia-craft-gravatar)
```

###  Alternatives

[wbrowar/guide

A CMS Guide for Craft CMS.

6154.5k1](/packages/wbrowar-guide)[jalendport/craft-preparse

A fieldtype that parses Twig when an element is saved and saves the result as plain text.

1086.4k](/packages/jalendport-craft-preparse)[nystudio107/craft-autocomplete

Provides Twig template IDE autocomplete of Craft CMS &amp; plugin variables

44204.4k13](/packages/nystudio107-craft-autocomplete)[viget/craft-classnames

Classnames plugin for Craft CMS

1115.5k1](/packages/viget-craft-classnames)[verbb/footnotes

Adds a footnotes feature to CKEditor fields and Twig templates.

213.3k](/packages/verbb-footnotes)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
