PHPackages                             alexeevdv/twig-gravatar-filter - 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. alexeevdv/twig-gravatar-filter

ActiveLibrary[Templating &amp; Views](/categories/templating)

alexeevdv/twig-gravatar-filter
==============================

1.0.0(7y ago)012MITPHP

Since Dec 4Pushed 7y ago1 watchersCompare

[ Source](https://github.com/alexeevdv/twig-gravatar-filter)[ Packagist](https://packagist.org/packages/alexeevdv/twig-gravatar-filter)[ RSS](/packages/alexeevdv-twig-gravatar-filter/feed)WikiDiscussions master Synced today

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

Twig Gravatar filter
====================

[](#twig-gravatar-filter)

[![Build Status](https://camo.githubusercontent.com/879ff4b8750a089656a63deab85bbb7314ec67ba1c3207606a5ae3d41e29fdd0/68747470733a2f2f7472617669732d63692e6f72672f616c657865657664762f747769672d67726176617461722d66696c7465722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/alexeevdv/twig-gravatar-filter)[![codecov](https://camo.githubusercontent.com/985fd2a6267de10be079bc3e0e903f68fc33c844f37fc7704b72ec7398a97f96/68747470733a2f2f636f6465636f762e696f2f67682f616c657865657664762f747769672d67726176617461722d66696c7465722f6272616e63682f6d61737465722f67726170682f62616467652e737667)](https://codecov.io/gh/alexeevdv/twig-gravatar-filter)[![PHP 5.6](https://camo.githubusercontent.com/02377f76b3cbe5c9bd3bc047522682376deaab69a4aed013b4a00018e068db72/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d352e362d677265656e2e737667)](https://camo.githubusercontent.com/02377f76b3cbe5c9bd3bc047522682376deaab69a4aed013b4a00018e068db72/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d352e362d677265656e2e737667)[![PHP 7.0](https://camo.githubusercontent.com/28174979e725b1f51a3ddc2a37022bd139e49d42f64fdc7b9322b3e5a15a3f7c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d372e302d677265656e2e737667)](https://camo.githubusercontent.com/28174979e725b1f51a3ddc2a37022bd139e49d42f64fdc7b9322b3e5a15a3f7c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d372e302d677265656e2e737667)[![PHP 7.1](https://camo.githubusercontent.com/89830e985e0a7f5f1ed58d412d81ee5bdccafb5dd5861eb9a6e63e44dde568b6/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d372e312d677265656e2e737667)](https://camo.githubusercontent.com/89830e985e0a7f5f1ed58d412d81ee5bdccafb5dd5861eb9a6e63e44dde568b6/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d372e312d677265656e2e737667)[![PHP 7.2](https://camo.githubusercontent.com/047bbe011ab372b4d00fc7ab0ed6f0d2a3db1ffda3a25de65f318dac100328ba/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d372e322d677265656e2e737667)](https://camo.githubusercontent.com/047bbe011ab372b4d00fc7ab0ed6f0d2a3db1ffda3a25de65f318dac100328ba/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d372e322d677265656e2e737667)

This is Twig filter which converts email to Gravatar image url.

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

[](#installation)

The preferred way to install this extension is through [composer](https://getcomposer.org/download/).

Either run

```
$ composer require alexeevdv/twig-gravatar-filter "^1.0"
```

or add

```
"alexeevdv/twig-gravatar-filter": "^1.0"

```

to the `require` section of your `composer.json` file.

Configuration
-------------

[](#configuration)

### Symfony

[](#symfony)

```
twig.extension.gravatar:
    class: \alexeevdv\twig\GravatarFilter
    tags:
        - { name: twig.extension }

```

### Standalone

[](#standalone)

```
$twig->addExtension(new \alexeevdv\twig\GravatarFilter);
```

Usage
-----

[](#usage)

### Without parameters

[](#without-parameters)

```

```

### With different parameters

[](#with-different-parameters)

```

```

Parameters
----------

[](#parameters)

For possible values please refer to [Gravatar documentation](https://en.gravatar.com/site/implement/images/)

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity61

Established project with proven stability

 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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

2716d ago

### Community

Maintainers

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

---

Top Contributors

[![alexeevdv](https://avatars.githubusercontent.com/u/597839?v=4)](https://github.com/alexeevdv "alexeevdv (5 commits)")

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/alexeevdv-twig-gravatar-filter/health.svg)

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

###  Alternatives

[twig/extra-bundle

A Symfony bundle for extra Twig extensions

91292.0M315](/packages/twig-extra-bundle)[twig/intl-extra

A Twig extension for Intl

36663.2M221](/packages/twig-intl-extra)[rcrowe/twigbridge

Adds the power of Twig to Laravel

9105.9M50](/packages/rcrowe-twigbridge)[twig/string-extra

A Twig extension for Symfony String

21946.0M133](/packages/twig-string-extra)[twig/cssinliner-extra

A Twig extension to allow inlining CSS

23018.5M55](/packages/twig-cssinliner-extra)[symfony/ux-twig-component

Twig components for Symfony

21814.8M162](/packages/symfony-ux-twig-component)

PHPackages © 2026

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