定制 eye4web/zfc-user-profile-picture 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

eye4web/zfc-user-profile-picture

最新稳定版本:0.0.1

Composer 安装命令:

composer require eye4web/zfc-user-profile-picture

包简介

Adds profile picture functionality to ZfcUser.

README 文档

README

Build Status Test Coverage Code Climate Latest Stable Version License

Introduction

This module adds profile picture upload functionality to ZfcUser.

Installation

With composer

  1. Add this project composer.json:

    "require": {
        "eye4web/zfc-user-profile-picture": "dev-master"
    }
  2. Now tell composer to download the module by running the command:

    $ php composer.phar update
  3. Enable it in your application.config.php file.

    <?php
    return array(
        'modules' => array(
            // ...
            'Eye4web\ZfcUser\ProfilePicture'
        ),
        // ...
    );
  4. Copy config/eye4web.zfcuser.profilepicture.global.php.dist to config/autoload/eye4web.zfcuser.profilepicture.global.php and configure to your needs.

  5. Make your User Entity implement Eye4web\ZfcUser\ProfilePicture\Entity\ProfilePictureInterface

    use 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;
        }
    }
  6. Make sure you've libmagic and fileinfo php extension installed.

统计信息

  • 总下载量: 213
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 9
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 8
  • Watchers: 3
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-03-02

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固