Download the PHP package zertex/yii2-avatar-generator without Composer
On this page you can find all versions of the php package zertex/yii2-avatar-generator. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package yii2-avatar-generator
Avatar Generator
Generate avatar for user by his name, file or url for Yii2.
Features
- Generate avatar by username
- Generate avatar from file or url (http only)
- Auto select background color by username
- Contrast color for text
- Font face and size customize
- Texture for background (2 available now)
Dependencies
- PHP 7
- PHP GD
- zertex/avatar-generator
Installation
Install with composer:
or add
to the require section of your composer.json
file.
Configuration
Add to common/config/main.php
or config/web.php
- images_folder -
required
Folder for images - images_url -
required
Url to folder with images - size_width - Origin image side width. Default: 300
- font - Path to TTF font file. Yii2 aliases ready. Default: Play-Bold.ttf
- font_size - Font size. Default: 300
- salt - Random garbage for images file name
- texture - Texture name: sun, rain. Default: empty
- text_over_image - Draw text over image. For avatar created from file. Default: true
- texture_over_image - Draw texture over image. For avatar created from file. Default: true
Using
Simple use with default image resolution
Image with 150 px sides
Image for existing file with default image resolution
or
Image for existing file with 150 px sides
Using without Yii2 wrap
You can use avatar generator without Yii2 wrap. Just install https://github.com/zertex/avatar-generator
Screenshot
Examples
All versions of yii2-avatar-generator with dependencies
PHP Build Version
Package Version
Requires
zertex/avatar-generator Version
^1.1.5
The package zertex/yii2-avatar-generator contains the following files
Loading the files please wait ....