PHP code example of cebe / yii2-gravatar

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

    

cebe / yii2-gravatar example snippets


<?= \cebe\gravatar\Gravatar::widget([
    'email' => '[email protected]',
    'options' => [
        'alt' => 'Carsten Brandt'
    ],
    'size' => 32
])