drago-ex / gravatar
Simple Gravatar for Nette Framework
v1.0.5
2023-12-08 07:39 UTC
Requires
- php: >=8.1 <8.4
- nette/di: ^3.0
- nette/utils: ^3.1
Requires (Dev)
- nette/bootstrap: ^3.2
- nette/tester: ^2.5
- phpstan/phpstan-nette: ^1.2.9
- tracy/tracy: ^2.10
README
Simple Gravatar.
Technology
- PHP 8.1 or higher
- composer
Installation
composer require drago-ex/gravatar
Extension registration
extensions: - Drago\User\DI\GravatarExtension(size: 80, defaultImage: 'mm', rating: 'g')
Use
$gravatar = $this->gravatar; $gravatar->setEmail('someone@somewhere.com'); $this->template->gravatar = $gravatar->getGravatar();
Template
<img src="{$gravatar}" alt="">