Download the PHP package michaelgooden/mdg-multi-user without Composer
On this page you can find all versions of the php package michaelgooden/mdg-multi-user. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download michaelgooden/mdg-multi-user
More information about michaelgooden/mdg-multi-user
Files in michaelgooden/mdg-multi-user
Package mdg-multi-user
Short Description ZF2 module to allow multiple concurrent instances of ZfcUser, for independant user systems.
License BSD-3-Clause
Homepage https://github.com/MichaelGooden/MdgMultiUser
Informations about the package mdg-multi-user
MdgMultiUser
Created by Michael Gooden (#MichaelGooden).
I can usually be found on #zftalk on Freenode if you need help setting this up.
Introduction
MdgMultiUser is a module for Zend Framework 2 that enables you to configure and use multiple instances of the ZfcUser user registration and authentication module.
Requirements
- ZfcUser (>=v0.1.0,<v0.2.0).
Installation
Main Setup
With composer
-
Add this project to your composer.json:
- Now tell composer to download MdgMultiUser by running the command:
Post installation
- Enabling it in your
application.config.php
file.
Post-Install: Zend\Db
-
You can use the schema provided by ZfcUser, just change the table name for each subsystem you setup.
-
This module does require a minimal amount of configuration to work. An example configuration file has been provided
./config/mdgmultiuser.example.global.php.dist
.Copy this file to your projects
./config/autoload/
folder, and edit the examples to suit your requirements.Importantly, you will be required to setup a full route structure for any subsystems you wish to have.
Usage Notes
In order to access the view helpers and controller plugins, you need to call a different set of commands.
- Controller plugin
ZfcUserAuthentication()
maps toMdgMultiUserAuthentication($alias)
- View helper
ZfcUserDisplayName()
maps toMdgMultiUserDisplayName($alias)
- View helper
ZfcUserIdentity()
maps toMdgMultiUserIdentity($alias)
- View helper
ZfcUserLoginWidget()
maps toMdgMultiUserLoginWidget($alias)
In all cases $alias
must be replaced by the name of your subsystem. This is
derived from the key of the config array under 'mdgmultiuser'
.