umpirsky/gravatar

Lightweight Gravatar library.

0.1 2014-11-12 14:28 UTC

This package is not auto-updated.

Last update: 2024-04-09 02:05:18 UTC


README

68747470733a2f2f6661726d322e737461746963666c69636b722e636f6d2f313730392f32353039383532363838345f616534643530343635665f6f5f642e706e67

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.