crunchy / crunchy-profile
Extensible user profile system for ZfcUser
Requires
This package is not auto-updated.
Last update: 2025-01-13 14:58:42 UTC
README
Version 0.0.1 Created by Michal Walkowiak from Crunchy Consulting, Inc (CrunchyConsulting.com)
Introduction
CrunchyProfile is an extension to ZfcUser and provides very flexible profile editor based on key-value pairs for different kind of fields
Installation Instructions
Installation of CrunchyProfile uses composer. For composer documentation, please refer to getcomposer.org.
Installation Steps
WITH COMPOSER (RECOMMENDED)
-
Add this project to your composer.json
"require": { "zf-commons/zfc-base": "dev-master", "zf-commons/zfc-user": "0.*", "imagine/Imagine": "0.3.*", "crunchy/crunchy-profile": "dev-master", }
-
Tell composer to download CrunchyProfile by running the command:
$ php composer.phar update
… OR BY CLONING PROJECT
- Install the ZfcBase ZF2 module by cloning it into ./vendor/.
- Install the ZfcUser ZF2 module by cloning it into ./vendor/.
- Install the Imagine ZF2 module by cloning it into ./vendor/.
- Clone this project into your ./vendor/ directory.
-
Apply schema from ./vendor/crunchy/crunchy-profile/data/schema.sql
-
Open
configs/application.config.php
and add the following key to yourmodules
:'ZfcUser', 'CrunchyProfile',
Configuration
Copy CrunchyProfile/config/crunchyprofile.global.php.dist to ./config/autoload/crunchyprofile.global.php and define your fields and validation rules for them.
Create a folder "profiles" under public/images with write permissions or change the path in the crunchyprofile.global.php
TO-DO:
- Move more options into configuration
- Add more supported fields and options
- Add more custom options for image processing during upload