PAD Showcase
All tags/Identicon

Accounts at a glance

An identicon per e-mail address: trimmed and lower-cased first, so every spelling of one address is one picture.

1 The data identicon/accounts.php php
<?php

  $accounts = [
    [ 'email' => 'herbert@example.com', 'joined' => '2009-03-14' ],
    [ 'email' => 'ada@example.org',     'joined' => '2015-12-10' ],
    [ 'email' => 'grace@example.net',   'joined' => '2018-07-01' ],
    [ 'email' => 'alan@example.com',    'joined' => '2021-06-23' ],
    [ 'email' => 'Ada@Example.org ',    'joined' => 'the same address, other spelling' ] ];

?>
2 The template identicon/accounts.pad pad
<table style="border-collapse:collapse; width:100%">
  {accounts}
  <tr style="border-bottom:1px solid rgba(127,127,127,.25)">
    <td style="padding:8px 12px 8px 0; width:48px">{identicon $email, size=40}</td>
    <td style="padding:8px 0"><strong>{$email}</strong><br><small style="opacity:.7">{$joined}</small></td>
  </tr>
  {/accounts}
</table>
3 The result rendered on the server
Identicon herbert@example.com
2009-03-14
Identicon ada@example.org
2015-12-10
Identicon grace@example.net
2018-07-01
Identicon alan@example.com
2021-06-23
Identicon Ada@Example.org
the same address, other spelling