2017 © Pedro PelĂĄez
 

library zfc-user-profile-picture

Adds profile picture functionality to ZfcUser.

image

eye4web/zfc-user-profile-picture

Adds profile picture functionality to ZfcUser.

  • Saturday, March 7, 2015
  • by Danielss89
  • Repository
  • 1 Watchers
  • 8 Stars
  • 211 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

ZfcUserProfilePicture

Build Status Test Coverage Code Climate Latest Stable Version License, (*1)

Introduction

This module adds profile picture upload functionality to ZfcUser., (*2)

Installation

With composer

  1. Add this project composer.json:, (*3)

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

    $ php composer.phar update
    
  3. Enable it in your application.config.php file., (*5)

    <?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., (*6)

  5. Make your User Entity implement Eye4web\ZfcUser\ProfilePicture\Entity\ProfilePictureInterface, (*7)

    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., (*8)

The Versions

07/03 2015

dev-master

9999999-dev https://github.com/Eye4web/ZfcUserProfilePicture

Adds profile picture functionality to ZfcUser.

  Sources   Download

MIT

The Requires

 

The Development Requires

module zfcuser zendframework eye4web

07/03 2015

0.0.1

0.0.1.0 https://github.com/Eye4web/ZfcUserProfilePicture

Adds profile picture functionality to ZfcUser.

  Sources   Download

MIT

The Requires

 

The Development Requires

module zfcuser zendframework eye4web