<commit_before>ZfcUserProfilePicture
=======

Introduction
------------
This module adds profile picture upload functionality to ZfcUser.

Installation
------------
#### With composer

1. Add this project composer.json:

    ```json
    "require": {
        "eye4web/zfc-user-profile-picture": "dev-master"
    }
    ```

2. Now tell composer to download the module by running the command:

    ```bash
    $ php composer.phar update
    ```

3. Enable it in your `application.config.php` file.

    ```php
    <?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`

    ```php
    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.
<commit_msg>Add badges<commit_after>ZfcUserProfilePicture
=======

[![Build Status](https://travis-ci.org/Eye4web/ZfcUserProfilePicture.svg?branch=master)](https://travis-ci.org/Eye4web/ZfcUserProfilePicture)
[![Test Coverage](https://codeclimate.com/github/Eye4web/ZfcUserProfilePicture/badges/coverage.svg)](https://codeclimate.com/github/Eye4web/ZfcUserProfilePicture)
[![Code Climate](https://codeclimate.com/github/Eye4web/ZfcUserProfilePicture/badges/gpa.svg)](https://codeclimate.com/github/Eye4web/ZfcUserProfilePicture)
[![Latest Stable Version](https://poser.pugx.org/eye4web/zfc-user-profile-picture/v/stable.svg)](https://packagist.org/packages/eye4web/zfc-user-profile-picture)
[![License](https://poser.pugx.org/eye4web/zfc-user-profile-picture/license.svg)](https://packagist.org/packages/eye4web/zfc-user-profile-picture)

Introduction
------------
This module adds profile picture upload functionality to ZfcUser.

Installation
------------
#### With composer

1. Add this project composer.json:

    ```json
    "require": {
        "eye4web/zfc-user-profile-picture": "dev-master"
    }
    ```

2. Now tell composer to download the module by running the command:

    ```bash
    $ php composer.phar update
    ```

3. Enable it in your `application.config.php` file.

    ```php
    <?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`

    ```php
    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.

{'fraction_non_alphanumeric': 0.13506285102968707, 'fraction_numerical': 0.009093340465365071, 'mean_word_length': 2.7663645518630413, 'pattern_counts': {'":': 4, '<': 5, '<?xml version=': 0, '>': 9, 'https://': 10, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4245802', 'n_tokens_mistral': 1177, 'n_tokens_neox': 1104, 'n_words': 215}