umpirsky / gravatar
Lightweight Gravatar library.
0.1
2014-11-12 14:28 UTC
Requires
- php: ~5.3
- symfony/options-resolver: ~2.5
Requires (Dev)
- phpspec/phpspec: ~2.0
This package is not auto-updated.
Last update: 2024-11-05 05:13:47 UTC
README
symfony upgrade fixer • twig gettext extractor • wisdom • centipede • permissions handler • extraload • gravatar • locurro • country list • transliterator
Gravatar
Lightweight Gravatar library.
Examples
Basic
<?php print((new Gravatar\Gravatar())->getUrl('umpirsky@gmail.com')); // Outputs: // http://www.gravatar.com/avatar/71a0abb69d81544d7cb390e186d5d123
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
See more examples.