hrevert/ht-profile-image

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

2.3.2 2014-10-29 03:26 UTC

This package is auto-updated.

Last update: 2024-10-13 02:33:07 UTC


README

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