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 This week: 1All time: 10,652 This week: 560Up
Version License PHP version Categories
php-gravatar-class 1.0.0MIT/X Consortium ...5HTML, PHP 5, Graphics, Web services
Description 

Author

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: 84611 in Pakistan Pakistan
Week rank: 52 Up3 in Pakistan Pakistan Up
Innovation award
Innovation award
Nominee: 6x

Example

<?php

require "Classes/Gravatar.php";

$g = new Gravatar("lablnet01@gmail.com");
echo
$g->toHtml();


echo
"<br>";

//Change the size
$g->setSize(512);
echo
$g->toHtml();


  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 readme.md 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  
 100%
Total:50
This week:1
All time:10,652
This week:560Up