2017 © Pedro PelĂĄez
 

library twig-integration

Integrates Gravatar into Twig templating engine

image

gravatarphp/twig-integration

Integrates Gravatar into Twig templating engine

  • Sunday, January 22, 2017
  • by mark.sagikazar
  • Repository
  • 1 Watchers
  • 3 Stars
  • 140 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Gravatar Twig Integration

Latest Version Software License Build Status Total Downloads, (*1)

Integrates Gravatar into Twig templating engine., (*2)

Install

Via Composer, (*3)

``` bash $ composer require gravatarphp/twig-integration, (*4)



## Usage ``` php use Gravatar\Gravatar; use Gravatar\Twig\GravatarExtension; $extension = new GravatarExtension(new Gravatar()); $environment->addExtension($extension);

Use it in a twig template:, (*5)

``` html Avatar Profile vCard QR Code, (*6)


Options can be provided as first filter parameter, for example: ``` html <a href="{{ 'user@domain.com'|gravatar_avatar({d: 'retro'}) }}">Avatar</a>

All options can be found on Gravatar's documentation., (*7)

Testing

bash $ composer test, (*8)

Credits

License

The MIT License (MIT). Please see License File for more information., (*9)

The Versions

22/01 2017

dev-master

9999999-dev http://gravatarphp.com

Integrates Gravatar into Twig templating engine

  Sources   Download

MIT

The Requires

 

The Development Requires

by MĂĄrk SĂĄgi-KazĂĄr

twig gravatar

25/06 2016

v1.0.0

1.0.0.0 http://gravatarphp.com

Integrates Gravatar into Twig templating engine

  Sources   Download

MIT

The Requires

 

The Development Requires

by MĂĄrk SĂĄgi-KazĂĄr

twig gravatar