PHP Classes

File: example/index.php

Recommend this page to a friend!
  Classes of Muhammad Umer Farooq   PHP Avatar Generator Class   example/index.php   Download  
File: example/index.php
Role: Example script
Content type: text/plain
Description: Example script
Class: PHP Avatar Generator Class
Generate people's avatar images using their names
Author: By
Last change:
Date: 6 years ago
Size: 259 bytes
 

Contents

Class file image Download
<?php
   
use Lablnet\Avatar;
    require
'../vendor/autoload.php';
   
$avatar = new Avatar;
   
//$avatar->getInstance()->setBlock(2); //change block
   
$imageDataUri = $avatar->getImgDataBase64('Denil',128,'','#daf45s');
    echo
"<img src=".$imageDataUri." />";