2017 © Pedro Peláez
 

kohana-module kohana-gravatar

A globally recognized avatar aka Gravatar module for Kohana framework

image

wintersilence/kohana-gravatar

A globally recognized avatar aka Gravatar module for Kohana framework

  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Kohana Gravatar

A globally recognized avatar aka Gravatar module for Kohana framework., (*1)

Gravatar - a picture that follows you from site to site, appearing when you send a comment or write a blog. For more info visite gravatar.com., (*2)

Properties

  • Flexible configuration using the groups
  • Getting the Gravatar URL
  • Getting the image tag
  • Getting the profile data

Usage examples

Create image tag with Gravatar:, (*3)

echo Gravatar::factory('me@site.com', 'cfg_group')->render('img_class_attr', $secure);
// Short way
echo Gravatar::factory('user@site.com', 'big');
// Configurate in code
$gravatar = Gravatar::factory();
echo $gravatar->email('user@site.com')
    ->size(50)
    ->default_image(Gravatar::IMAGE_MM)
    ->force_default(FALSE)
    ->rating(Gravatar::RATING_PG)
    ->render('avatar_class', FALSE);

Get profile data:, (*4)

var_export($gravatar->profile_data(array('photos', 'accounts')));

Get URL:, (*5)

echo $gravatar->url($secure);

Get properties:, (*6)

echo $gravatar->size();
echo $gravatar->rating();

The Versions

23/06 2016

dev-3.3/master

dev-3.3/master

A globally recognized avatar aka Gravatar module for Kohana framework

  Sources   Download

BSD-3-Clause

The Requires

 

framework gravatar kohana