Skip to content

Simple PHP API provider for getting user Gravatar and user description.

License

Notifications You must be signed in to change notification settings

baraja-core/gravatar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gravatar API

The goal of this package is to provide a simple object-oriented interface for working with Gravatar.

Simply call the method with the user's email and get back an object that describes all the data we can get about the user.

It is relatively easy to use:

$gravatar = new Gravatar;

// Get icon URL - default icon size
$gravatar->getIcon('jan@barasek.com');

// small icon size
$gravatar->getIcon('jan@barasek.com', 32);

// big icon size
$gravatar->getIcon('jan@barasek.com', 255);

// Get user full info as GravatarResponse
$gravatar->getUserInfo('jan@barasek.com');