PHPackages                             mluex/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. [Templating &amp; Views](/categories/templating)
4. /
5. mluex/gravatar-bundle

ActiveSymfony-bundle[Templating &amp; Views](/categories/templating)

mluex/gravatar-bundle
=====================

Simple wrapper to gravatar API for Symfony 5 - Forked from ornicar/gravatar-bundle

2.0.0(6y ago)358.6kMITPHPPHP ^7.1

Since Mar 26Pushed 6y agoCompare

[ Source](https://github.com/mluex/gravatar-bundle)[ Packagist](https://packagist.org/packages/mluex/gravatar-bundle)[ RSS](/packages/mluex-gravatar-bundle/feed)WikiDiscussions master Synced 5d ago

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

Installation
============

[](#installation)

Make sure Composer is installed globally, as explained in the [installation chapter](https://getcomposer.org/doc/00-intro.md)of the Composer documentation.

Applications that use Symfony Flex
----------------------------------

[](#applications-that-use-symfony-flex)

Open a command console, enter your project directory and execute:

```
$ composer require mluex/gravatar-bundle
```

Applications that don't use Symfony Flex
----------------------------------------

[](#applications-that-dont-use-symfony-flex)

### Step 1: Download the Bundle

[](#step-1-download-the-bundle)

Open a command console, enter your project directory and execute the following command to download the latest stable version of this bundle:

```
$ composer require mluex/gravatar-bundle
```

### Step 2: Enable the Bundle

[](#step-2-enable-the-bundle)

Then, enable the bundle by adding it to the list of registered bundles in the `config/bundles.php` file of your project:

```
// config/bundles.php

return [
    // ...
    Mluex\GravatarBundle\MluexGravatarBundle::class => ['all' => true],
];
```

### Step 3: Configure Bundle

[](#step-3-configure-bundle)

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

```
# config/packages/mluex_gravatar.yml
mluex_gravatar:
  rating: g
  size: 80
  default: mm
```

Usage
=====

[](#usage)

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

```
