2017 © Pedro PelĂĄez
 

library gravatar-helper

Simple class for better getting avatars from service gravatar.com

image

kappa/gravatar-helper

Simple class for better getting avatars from service gravatar.com

  • Wednesday, May 21, 2014
  • by Budry
  • Repository
  • 1 Watchers
  • 0 Stars
  • 13 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Kappa\Gravata Build Status

Simple class for better getting avatars from service gravatar.com, (*1)

Requirements:

Installation

The best way to install Kappa\Utils is using Composer:, (*2)

$ composer require kappa/gravatar:@dev

and register extension:, (*3)

extensions:
    gravatar: Kappa\Gravatar\DI\GravatarExtension

Usages

You can set cache directory for faster displaying avatars, (*4)

gravatar:
    cacheDir: %wwwDir%/gravatar #default

Into presenter or control where you can use this helper add filter (helper), (*5)

$template->addFilter('gravatar', array($this->gravatar, 'getAvatar')) // for Nette 2.2
$template->registerHelper('gravatar', array($this->gravatar, 'getAvatar')) // for Nette 2.1

Usages in template:, (*6)

<img src="$user->getEmail()|gravatar:30">

The Versions

21/05 2014

dev-master

9999999-dev https://github.com/Kappa-org/Gravatar-Helper

Simple class for better getting avatars from service gravatar.com

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

framework helper nette avatar gravatar kappa

21/05 2014

v1.0.0

1.0.0.0 https://github.com/Kappa-org/Gravatar-Helper

Simple class for better getting avatars from service gravatar.com

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

framework helper nette avatar gravatar kappa