pmGravatarPlugin - 1.0.0

With this plugin you can use gravatar images in your application.

You are currently browsing
the website for symfony 1

Visit the Symfony2 website


« Back to the Plugins Home

Signin


Forgot your password?
Create an account

Tools

Stats

advanced search
Information Readme Releases Changelog Contribute
Show source

pmGravatarPlugin

With this plugin you can use gravatar images in your application.

Installation

  • Install the plugin

    $ ./symfony plugin:install pmGravatarPlugin
    
  • Clear you cache

    $ symfony cc
    

Example usage

<?php use_helper('Gravatar') ?>
 
<?php echo gravatar('pmacadden@cespi.unlp.edu.ar') ?>

Gravatar helper functions

  • gravatar: draws a gravatar
  • gravatar_url: returns the gravatar url from a given email. Returns a default image if email does not have an image

functions options

  • size: a value between 1 and 512
  • rating: 'g', 'pg', 'r', 'x'
  • default image: one of gravatar's default images