PHPackages                             skylord123/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. skylord123/gravatar-bundle

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

skylord123/gravatar-bundle
==========================

FORKED!!! This bundles provides a Gravatar API various utilities to work with it in templates

1.5.0(6y ago)020MITPHPPHP &gt;=5.3.0

Since Mar 26Pushed 6y agoCompare

[ Source](https://github.com/skylord123/GravatarBundle)[ Packagist](https://packagist.org/packages/skylord123/gravatar-bundle)[ RSS](/packages/skylord123-gravatar-bundle/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (4)Versions (11)Used By (0)

OrnicarGravatarBundle
=====================

[](#ornicargravatarbundle)

Note: This is the new home for OrnicarGravatarBundle. The package name and namespace will not change. But the code will be maintained.

[![Build Status](https://camo.githubusercontent.com/e0cbee82365962886d3bee3ff37869f14b158b2138acf1d0144e59ccb64159e6/68747470733a2f2f7472617669732d63692e6f72672f68656e72696b626a6f726e2f477261766174617242756e646c652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/henrikbjorn/GravatarBundle)

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

[](#installation)

1. Add this bundle to your projects composer.json

```
"require": {
    "ornicar/gravatar-bundle" : "~1.0"
}
```

2. Run composer update to install the bundle and regenerate the autoloader

```
$ composer update ornicar/gravatar-bundle
```

3. Add this bundle to your application's kernel:

```
// application/ApplicationKernel.php
public function registerBundles()
{
    return array(
        // ...
        new Ornicar\GravatarBundle\OrnicarGravatarBundle(),
        // ...
    );
}
```

4. Configure the `gravatar` service, templating helper and Twig extension in your config:

```
# application/config/config.yml
ornicar_gravatar: ~
```

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

```
# application/config/config.yml
ornicar_gravatar:
  rating: g
  size: 80
  default: mm
```

Usage
-----

[](#usage)

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

```
