PHP Classes

File: readme.md

Recommend this page to a friend!
  Classes of Muhammad Umer Farooq  >  PHP Get Gravatar URL  >  readme.md  >  Download  
File: readme.md
Role: Example script
Content type: text/markdown
Description: Example script
Class: PHP Get Gravatar URL
Get the HTML to show an user image from Gravatar
Author: By
Last change:
Date: 4 years ago
Size: 375 bytes
 

Contents

Class file image Download

PHP-Gravatar-Class

Gravatar is an image that follows you from site to site appearing beside your name when you do things like comment or post on a blog

we use gravatar.com api

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();