PHP code example of faicchia / boring-avatars
1. Go to this page and download the library: Download faicchia/boring-avatars 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/ */
faicchia / boring-avatars example snippets
use Faicchia\BoringAvatars\BoringAvatar;
$avatar = BoringAvatar::make()
->size(60)
->variant('bauhaus')
->name('James Smith')
->colors(['#2c5545', '#063971', '#2f353b'])
->url();
// https://source.boringavatars.com/bauhaus/60/James+Smith?colors=2c5545,063971,2f353b