PHPackages                             saldanhakun/gravatar-bundle - 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. [API Development](/categories/api)
4. /
5. saldanhakun/gravatar-bundle

ActiveSymfony-bundle[API Development](/categories/api)

saldanhakun/gravatar-bundle
===========================

The simple way to use Gravatar API for Symfony 4.4 to 7

v1.5.0(11mo ago)01MITPHPPHP &gt;=8.1

Since Jul 24Pushed 11mo agoCompare

[ Source](https://github.com/saldanhakun/GravatarBundle)[ Packagist](https://packagist.org/packages/saldanhakun/gravatar-bundle)[ Docs](https://github.com/Pyrrah/GravatarBundle)[ RSS](/packages/saldanhakun-gravatar-bundle/feed)WikiDiscussions main Synced today

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

Pyrrah/GravatarBundle 🤳
=======================

[](#pyrrahgravatarbundle-)

[![Latest Version on Packagist](https://camo.githubusercontent.com/9c4e799305b842d1d29c4a2c330882dd5a7ec25a5dbc1e795445d9c224973b42/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7079727261682f67726176617461722d62756e646c652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/pyrrah/gravatar-bundle)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE)[![Total Contributors](https://camo.githubusercontent.com/c4bfa1f4b98ed0a003513d5bac5b4a5b7ff59b4814cdf881ea3f33f229203be8/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f636f6e7472696275746f72732f5079727261682f477261766174617242756e646c653f7374796c653d666c61742d737175617265)](../../contributors)[![Total Downloads](https://camo.githubusercontent.com/3602d042befdec2dd2d8e999d90f4852d59b4173d5266d6b89faa49e0fc0ca14/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7079727261682f67726176617461722d62756e646c652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/pyrrah/gravatar-bundle)

This bundle allows you to display your avatar anywhere on your site, via the Gravatar service.

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

[](#requirements)

- Symfony 6 or 7
- PHP 8.1 or higher
- A [Gravatar account](https://www.gravatar.com/site/signup) - it's free!

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

[](#installation)

1. To install this bundle, run the following [Composer](https://getcomposer.org/) command :

```
composer require saldanhakun/gravatar-bundle

```

2. If you always have some default for your gravatars such as size, rating or default it can be configured in your config :

```
# config/packages/pyrrah_gravatar.yaml
pyrrah_gravatar:
  rating: "g"
  size: 80
  default: "mp"
```

Usage
-----

[](#usage)

All you have to do is use the helper like this example:

```
