1. Go to this page and download the library: Download vinicius73/lavatar 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/ */
$avatar = Lavatar::make($identificator); // Creates standard object (Gravatar|Another)
$avatar->getUrl(); // Returns the URL of the avatar.
$avatar->image(); // Returns the image html tag.
$avatar->getUrl($options); // Override the default settings of the object
// @var string $alt alt img tag
// @var array $options Override the default settings of the object
// @var array $atts extra img html tags
$avatar->image($alt,$options,$atts);