Skip to content

umpirsky/Gravatar

Repository files navigation

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.

About

Lightweight Gravatar library.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages