PHPackages                             michaelhue/li3\_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. [Image &amp; Media](/categories/media)
4. /
5. michaelhue/li3\_gravatar

AbandonedArchivedLithium-library[Image &amp; Media](/categories/media)

michaelhue/li3\_gravatar
========================

The Lithium Gravatar plugin (Li3 Gravatar) allows you to interact with Gravatar (http://gravatar.com) images and profiles. It provides a helper for displaying Gravatars and a model for requesting user profiles from Gravatar.

51.8k1PHP

Since Jun 1Pushed 12y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

Gravatar Plugin for Lithium
===========================

[](#gravatar-plugin-for-lithium)

The Lithium Gravatar plugin (Li3 Gravatar) allows you to interact with Gravatar () images and profiles. It provides a helper for displaying Gravatars and a model for requesting user profiles from Gravatar.

Rendering Gravatars in your views
---------------------------------

[](#rendering-gravatars-in-your-views)

The plugin comes with a helper which makes it very easy to display Gravatars in your views:

```
// Renders an  tag with the Gravatar for mail@example.org

```

You may use the options `'default'`, `'size'` and `'rating'` and/or any HTML attribute to adjust the output to your needs.

```
// Renders an  tag with the class "gravatar", a fallback image on the server and a different size.
