Skip to content

hrevert/HtProfileImage

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HtProfileImage

Master Branch Build Status Latest Stable Version Latest Unstable Version Total Downloads

A Zend framework 2 module which adds profile image upload functionality to ZfcUser

Requirement

Features

  • Setting Gravatar as alternative when user has not uploaded his image
  • Setting gender wise default image when user has not uploaded his image
  • Resizing options for storing
  • Useful view helpers to get user images from view templates

Installation

  • Add "hrevert/ht-profile-image": "2.3.*", to your composer.json and run php composer.phar update
  • Enable this module as HtProfileImage and HtImgModule in config/application.config.php
  • Copy file located in config/htprofileimage.global.php to ./config/autoload/htprofileimage.global.php and change the values as you wish
  • Import the SQL schema located in ./vendor/hrevert/ht-profile-image//data/schema.sql if you use want to use different default images for different genders.

Note: Also, checkout the options of HtImgModule.

How To

Please check this /docs folder for more details on how to use this module.

TODO

  1. Ajax image upload
  2. Improve tests

About

An extension of ZfcUser for Zend Framework 2 which adds user avatar functionality

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages