umpirsky/gravatar

Lightweight Gravatar library.

0.1 2014-11-12 14:28 UTC

This package is not auto-updated.

Last update: 2024-12-17 05:53:00 UTC


README

symfony upgrade fixertwig gettext extractorwisdomcentipedepermissions handlerextraloadgravatarlocurrocountry listtransliterator

Gravatar Build Status

Lightweight Gravatar library.

Examples

Basic

<?php

print((new Gravatar\Gravatar())->getUrl('umpirsky@gmail.com'));

// Outputs:
// http://www.gravatar.com/avatar/71a0abb69d81544d7cb390e186d5d123

gravatar

Custom options

<?php

$gravatar = new Gravatar\Gravatar(array(
    'size'   => 120,
    'rating' => 'x',
));

print($gravatar)->getUrl('umpirsky@gmail.com'));

// Outputs:
// http://www.gravatar.com/avatar/71a0abb69d81544d7cb390e186d5d123?size=120&rating=x

gravatar

See more examples.