Skip to content

Small, clean static class for accessing an email-based gravatar.

Notifications You must be signed in to change notification settings

onassar/PHP-Gravatar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

PHP-Gravatar

Honestly, not much to say about this class. It was something I needed sometime ago to make my comments a little more robust. Gravatar adds context to email addresses that you may have from comments on your site, and my little static class simply wraps their basic API for a more organized execution.

Sample Image Output

<?php

    // dependency
    require_once APP . '/vendors/PHP-Gravatar/Gravatar.class.php';
    
    // grab path for associated email; output image
    $email = 'onassar@gmail.com';
    $image = Gravatar::getImagePath($email);
    echo '<img src="' . ($image) . '" />';
    exit(0);

About

Small, clean static class for accessing an email-based gravatar.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages