wintersilence / kohana-gravatar
This package is abandoned and no longer maintained.
No replacement package was suggested.
A globally recognized avatar aka Gravatar module for Kohana framework
Package info
github.com/WinterSilence/kohana-gravatar
Type:kohana-module
pkg:composer/wintersilence/kohana-gravatar
dev-3.3/master
2024-01-23 20:17 UTC
Requires
- php: >=5.3.3
- kohana/core: v3.3.4
This package is not auto-updated.
Last update: 2025-04-23 14:09:29 UTC
README
A globally recognized avatar aka Gravatar module for Kohana framework.
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.
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:
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:
var_export($gravatar->profile_data(array('photos', 'accounts')));
Get URL:
echo $gravatar->url($secure);
Get properties:
echo $gravatar->size();
echo $gravatar->rating();