PHP Classes

File: example/index.php

Recommend this page to a friend!
  Classes of Muhammad Umer Farooq  >  PHP Identicon  >  example/index.php  >  Download  
File: example/index.php
Role: Example script
Content type: text/plain
Description: Example script
Class: PHP Identicon
Generate an identicon image for a text string
Author: By
Last change:
Date: 3 years ago
Size: 255 bytes
 

Contents

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

For more information send a message to info at phpclasses dot org.