https://github.com/olivsinz/twig-avatar-extension
This Twig extension generates user avatar using name initials letter inside Twig templates.
https://github.com/olivsinz/twig-avatar-extension
avatar avatar-generator profile-picture twig twig-extension
Last synced: 6 months ago
JSON representation
This Twig extension generates user avatar using name initials letter inside Twig templates.
- Host: GitHub
- URL: https://github.com/olivsinz/twig-avatar-extension
- Owner: olivsinz
- License: mit
- Created: 2018-09-07T12:57:46.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2018-09-07T13:28:52.000Z (about 7 years ago)
- Last Synced: 2025-03-05T13:50:23.890Z (7 months ago)
- Topics: avatar, avatar-generator, profile-picture, twig, twig-extension
- Language: PHP
- Size: 7.81 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
The Avatar Extension
====================This Twig extension generates user avatar using name initials letter inside Twig templates. Based on [yohang88/letter-avatar
](https://github.com/yohang88/letter-avatar)* ``avatar``
Install
-------Via Composer
``` bash
$ composer require olivers/twig-avatar-extension
```Showing avatar based on user complete name
-------------------------------------------Use the ``avatar`` function to generate user avatar.
{% set userCompleteName = 'Peter Jackson' %}
This example would output avatar with two initials letter like ``PJ``, as ``Peter Jackson`` is the providen user name.
