PHP Classes


Recommend this page to a friend!
  Classes of Muhammad Umer Farooq  >  PHP Identicon  >  >  Download  
Role: Documentation
Content type: text/markdown
Description: Read me
Class: PHP Identicon
Generate an identicon image for a text string
Author: By
Last change:
Date: 3 years ago
Size: 827 bytes


Class file image Download

PHP Identicon

Identicon is a library which generate an identicon image based on a string.


  • PHP
  • Composer


run this command

## usage


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

## Change Size , color and background


use Lablnet\Identicon; require '../vendor/autoload.php'; $Identicon = new Identicon; //$Identicon->getInstance()->setBlock(2); //change block string | size | foreground | background $imageDataUri = $Identicon->getImgDataBase64('php',1000,'#fff','#dad'); echo "<img src=".$imageDataUri." />";

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