PHPackages                             matej/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. [Utility &amp; Helpers](/categories/utility)
4. /
5. matej/gravatar

AbandonedMagento2-module[Utility &amp; Helpers](/categories/utility)

matej/gravatar
==============

Gravatar implementation for Magento2

00HTML

Since Jul 21Pushed 8y ago1 watchersCompare

[ Source](https://github.com/B-Matt/magento2-gravatar)[ Packagist](https://packagist.org/packages/matej/gravatar)[ RSS](/packages/matej-gravatar/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (2)Used By (0)

Magento 2 Gravatar Extension
============================

[](#magento-2-gravatar-extension)

This extension implements [Gravatar](http://en.gravatar.com/) service in Magento 2! This module uses customer e-mail for generating Gravatar URL and it is complatible with Magento 2.

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

[](#requirements)

```
Magento 2.0+

```

How to install
--------------

[](#how-to-install)

Installation is pretty easy just use [Composer](https://getcomposer.org/) for it and viola! If you can't install it via Composer just create Matej\\Gravatar folders in app folder. Your folder structure should look like:

```
app/code/
├── Matej/
│   │   ├──Gravatar/
│   │   │   ├── ...
│   │   │   ├── ...

```

How to use
----------

[](#how-to-use)

There is optional Block code that you can use in templates:

```
echo Matej\Gravatar\Helper\Data::getCustomerAvatarByMail($email);
echo Matej\Gravatar\Helper\Data::getCustomerAvatarById($customer_id);
```

It automatically create block and put Gravatar URL (use those echo's for images src)!

You can use custom PHP code for creating Gravatar URL based on custom params:

```
$url = $this
    ->setGravatarSize(80)                           // Optional (default is 80)
    ->setGravatarSecured(false)                     // Optional (default is false)
    ->setGravatarDefaultImage('identico', false)    // Optional (default is mm)
    ->setGravatarRating('g')                        // Optional (default is g)
    ->getGravatarURL('example@example.com');
echo $url;
// Prints out: http://www.gravatar.com/avatar/55502f40dc8b7c769880b10874abc9d0?s=60&r=g&d=mm
```

That's all!

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity0

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity43

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/468dc40483a6e9fb98921ed5365480a69af84beb2b05eb873704f894e50eee84?d=identicon)[B-Matt](/maintainers/B-Matt)

---

Top Contributors

[![B-Matt](https://avatars.githubusercontent.com/u/4525012?v=4)](https://github.com/B-Matt "B-Matt (2 commits)")

### Embed Badge

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

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

PHPackages © 2026

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