/yii2-gravatar

Gravatar Widget for Yii Framework 2

Primary LanguagePHPMIT LicenseMIT

yii2-gravatar

Gravatar Widget for Yii Framework 2

How to install?

Get it via composer by adding the package to your composer.json:

{
  "require": {
    "cebe/yii2-gravatar": "^1.0"
  }
}

Alternatively just run composer require cebe/yii2-gravatar.

You may also check the package information on packagist and follow the extension page on yiiframework.com for udpates.

Usage

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