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

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

osiomagency/twig-gravatar
=========================

Twig extension to generate Gravatar URLs.

v1.0.0(1y ago)04MITPHP

Since Nov 23Pushed 1y agoCompare

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

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

Twig Gravatar Extension
-----------------------

[](#twig-gravatar-extension)

A **Twig** extension for generating **Gravatar** URLs based on user email addresses. This makes it easy to display profile images in your Twig templates.

---

### Installation

[](#installation)

Install the package via **Composer**:

```
composer require osiomagency/twig-gravatar
```

---

### Usage

[](#usage)

1. Register the extension in your Twig environment:

```
use Osiom\TwigGravatar\GravatarExtension;

$twig = new \Twig\Environment($loader);
$twig->addExtension(new GravatarExtension());
```

2. Use the `gravatar` filter in your Twig templates:

```

```

---

### Parameters

[](#parameters)

The `gravatar` filter accepts the following parameters:

ParameterTypeDefaultDescription`email`string(required)User's email address.`size`int`80`Size of the Gravatar image in pixels.`default`string`'identicon'`Default image type (if no Gravatar exists).**Example Values for `default`**:

- `identicon`
- `monsterid`
- `wavatar`
- `retro`
- `robohash`

For more details, see the [Gravatar Documentation](https://docs.gravatar.com/api/avatars/images/).

---

### Example

[](#example)

```

```

This will generate a URL like:

```
https://www.gravatar.com/avatar/205e460b479e2e5b48aec07710c08d50?s=150&d=retro

```

---

### License

[](#license)

This project is licensed under the [MIT License](LICENSE).

---

### Contributing

[](#contributing)

Contributions are welcome! Feel free to submit a pull request or open an issue.

---

### About

[](#about)

This package is developed and maintained by **OSIOM AGENCY**.
For inquiries, contact .

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance38

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity38

Early-stage or recently created project

 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

536d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/314f423bd633d4188e954f14562fff5c64cbb420ab511d5f10b1adacc26dd43d?d=identicon)[nicolasbaud](/maintainers/nicolasbaud)

---

Top Contributors

[![nicolasbaud](https://avatars.githubusercontent.com/u/63586531?v=4)](https://github.com/nicolasbaud "nicolasbaud (6 commits)")

### Embed Badge

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

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

###  Alternatives

[stfalcon/tinymce-bundle

This Bundle integrates TinyMCE WYSIWYG editor into a Symfony2 project.

2692.9M24](/packages/stfalcon-tinymce-bundle)[codefog/contao-haste

haste extension for Contao Open Source CMS

42650.8k139](/packages/codefog-contao-haste)[spomky-labs/pwa-bundle

Progressive Web App Manifest Generator Bundle for Symfony.

6144.4k1](/packages/spomky-labs-pwa-bundle)[netgen/content-browser

Netgen Content Browser is a Symfony bundle that provides an interface which selects items from any kind of backend and returns the IDs of selected items back to the calling code.

14112.1k8](/packages/netgen-content-browser)[leapt/core-bundle

Symfony LeaptCoreBundle

2529.1k4](/packages/leapt-core-bundle)

PHPackages © 2026

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