eye4web/zfc-user-profile-picture
最新稳定版本:0.0.1
Composer 安装命令:
composer require eye4web/zfc-user-profile-picture
包简介
Adds profile picture functionality to ZfcUser.
README 文档
README
Introduction
This module adds profile picture upload functionality to ZfcUser.
Installation
With composer
-
Add this project composer.json:
"require": { "eye4web/zfc-user-profile-picture": "dev-master" }
-
Now tell composer to download the module by running the command:
$ php composer.phar update
-
Enable it in your
application.config.phpfile.<?php return array( 'modules' => array( // ... 'Eye4web\ZfcUser\ProfilePicture' ), // ... );
-
Copy
config/eye4web.zfcuser.profilepicture.global.php.disttoconfig/autoload/eye4web.zfcuser.profilepicture.global.phpand configure to your needs. -
Make your User Entity implement
Eye4web\ZfcUser\ProfilePicture\Entity\ProfilePictureInterfaceuse Eye4web\ZfcUser\ProfilePicture\Entity\ProfilePictureInterface; use ZfcUser\Entity\UserInterface; class User implements ProfilePictureInterface, UserInterface { // ... protected $profile_picture; public function getProfilePicture() { return $this->profile_picture; } public function setProfilePicture($path) { $this->profile_picture = $path; } }
-
Make sure you've libmagic and fileinfo php extension installed.
统计信息
- 总下载量: 213
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 9
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-03-02