PHP Classes

PHP Get Gravatar URL: Get the HTML to show an user image from Gravatar

Recommend this page to a friend!
  Info   View files Example   View files View files (4)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not yet rated by the usersTotal: 50 All time: 10,679 This week: 488Up
Version License PHP version Categories
php-gravatar-class 1.0.0MIT/X Consortium ...5HTML, PHP 5, Graphics, Web services


This class can get the HTML to show an user image from Gravatar.

It takes the email address for an given user and calls the Gravatar API to get the URL of the user image.

The class generates HTML to show an image using its URL returned from Gravatar.

Picture of Muhammad Umer Farooq
Name: Muhammad Umer Farooq is available for providing paid consulting. Contact Muhammad Umer Farooq .
Classes: 52 packages by
Country: Pakistan Pakistan
Age: 22
All time rank: 84411 in Pakistan Pakistan
Week rank: 280 Up6 in Pakistan Pakistan Up
Innovation award
Innovation award
Nominee: 6x



require "Classes/Gravatar.php";

$g = new Gravatar("");


//Change the size

  Files folder image Files  
File Role Description
Files folder imageClasses (1 file)
Accessible without login Plain text file index.php Example Example script
Accessible without login Plain text file LICENSE Lic. License text
Accessible without login Plain text file Example Example script

  Files folder image Files  /  Classes  
File Role Description
  Plain text file Gravatar.php Class Class source

 Version Control Unique User Downloads Download Rankings  
This week:0
All time:10,679
This week:488Up