PHP code example of eye4web / zfc-user-profile-picture

1. Go to this page and download the library: Download eye4web/zfc-user-profile-picture library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

eye4web / zfc-user-profile-picture example snippets


    
    return array(
        'modules' => array(
            // ...
            'Eye4web\ZfcUser\ProfilePicture'
        ),
        // ...
    );
    

    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;
        }
    }
    
bash
    $ php composer.phar update