Skip to content

Instantly share code, notes, and snippets.

@lablnet
Created November 19, 2018 11:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lablnet/a7e059d143cb5ec2c20047a534686941 to your computer and use it in GitHub Desktop.
Save lablnet/a7e059d143cb5ec2c20047a534686941 to your computer and use it in GitHub Desktop.
<?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." />";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment