PHP code example of kregel / identicon

1. Go to this page and download the library: Download kregel/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/ */

    

kregel / identicon example snippets


route('identicon::main', [
    'YOUR STRING HERE', 
    'SIZE (optional)', 
    'TEXT_COLOR (optional)', 
    'BACKGROUND_COLOR (optional)'
]);

  'providers' => [
    ...,
    Kregel\Identicon\IdenticonServiceProvider::class,
    ...,
  ]
  

  'aliases' => [
    ...,
    'Identicon' => Kregel\Identicon\Facades\Identicon::class,
    ...,
  ]
  

  <img src="{{ route('identicon::main', [
    md5($user->email), 
    '200' 
]) }}">