PHP code example of lantern-lighthouse / identicon

1. Go to this page and download the library: Download lantern-lighthouse/identicon library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

lantern-lighthouse / identicon example snippets


use Identicon\Identicon;

// Simple image generation
Identicon::generateFromString("Bub fix");

// Imgage generation with more parameters (..., image size, inner grid size/level of detail)
Identicon::generateFromString("Bub fix", 64, 2);

// Generate 200x200 image with level of detail = 5
Identicon::outputImage("Bub fix");