Skip to content
An extension of ZfcUser for Zend Framework 2 which adds user avatar functionality
PHP
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
config
data
docs
language
src
tests
view
.gitignore
.travis.yml
LICENSE
Module.php
README.md
composer.json

README.md

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
You can’t perform that action at this time.