PHP code example of mbonghanoy / avatar
1. Go to this page and download the library: Download mbonghanoy/avatar 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/ */
mbonghanoy / avatar example snippets
arkb\Avatar\Avatar;
$svg = Avatar::make('John Doe')->svg();
$dataUri = Avatar::make('Jane Smith')
->size(160)
->background('#1d4ed8')
->color('#ffffff')
->circle()
->toDataUri();
echo Avatar::make('Élodie Durand')->svg();