hrevert / ht-profile-image
A Zend framework module which adds profile image upload functionality to ZfcUser
Installs: 631
Dependents: 0
Suggesters: 0
Security: 0
Stars: 12
Watchers: 5
Forks: 6
Open Issues: 3
Type:module
Requires
- php: >=5.4
- ext-fileinfo: *
- hrevert/ht-img-module: >=0.1.3,<0.4
- willdurand/negotiation: 1.3.*
- zendframework/zend-form: ~2.1
- zendframework/zend-inputfilter: ~2.1
- zendframework/zend-modulemanager: ~2.1
- zendframework/zend-mvc: ~2.1
- zendframework/zend-servicemanager: ~2.1
- zendframework/zend-stdlib: ~2.1
- zendframework/zend-validator: ~2.1
- zendframework/zend-view: ~2.1
- zf-commons/zfc-user: >=0.1,<2.0
This package is auto-updated.
Last update: 2024-12-13 02:47:47 UTC
README
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 runphp composer.phar update
- Enable this module as
HtProfileImage
andHtImgModule
inconfig/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
- Ajax image upload
- Improve tests