PHP code example of acj / x5

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

    

acj / x5 example snippets


// Render a letter A, based on its Unicode codepoint.
$x5 = new \Acj\X5\X5(0x41);
$x5->parse();

// Render an Identicon based on a string, like a username of email address.
$username = 'john-doe';

$x5 = new \Acj\X5\X5('identicon');
$x5->setIdentifier($username);
$x5->parse();

// Render a custom glyph based on a binary string, where every 0 represents an empty block.
$x5 = new \Acj\X5\X5('custom');
$x5->setInput('1111110001101011000111111');
$x5->parse();