Download the PHP package xelax90/zf-user-entity without Composer
On this page you can find all versions of the php package xelax90/zf-user-entity. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download xelax90/zf-user-entity
More information about xelax90/zf-user-entity
Files in xelax90/zf-user-entity
Package zf-user-entity
Short Description Provides a user and role entity to work with ZfcUser, Doctrine 2 and BjyAuthorize
License GPLv2
Informations about the package zf-user-entity
User module
This module provides configuration and entities for ZfcUser, DoctrineORM and BjyAuthorize. The user entity also implements the LocaleUserInterface required by xelax90/zf2-language-route.
Installation
Installation of XelaxUserModule uses composer. For composer documentation, please refer to getcomposer.org.
Then add XelaxLanguageRoute to your config/application.config.php and run
the doctrine schema update to create the database table:
Now copy the provided
vendor/xelax90/zf-user-module/config/xelax-user-module.global.php into your
config/autoload directory. This file provides the basic configuration for
ZfcUser, DoctrineORM and BjyAuthorize to work with this module. This file does
not contain all ZfcUser configuration options. Please refer to the ZfcUser
documentation or
configuration
for more details.
Configuration
You can configure this module in the config/autoload/xelax-user-module.global.php
file. All options are described there.
The user state in ZfcUser is enabled and is treated as a bitmask. The least
significant bit is always the 'Login Allowed' state. Other modules can use other
bits to store additional information. It is assumed, that only fife bits are used.
You can adjust this number in the allowed_login_states configuration option.
Custom user entity
If you want to add attributes to the user entity, you can simply follow these steps:
- Create your entity in your namespace and subclass
\XelaxUserEntity\Entity\User. Don't forget the Doctrine annotations - Change
user_entity_classconfiguration option inconfig/autoload/xelax-user-entity.global.phpto your entity class
All versions of zf-user-entity with dependencies
zf-commons/zfc-user-doctrine-orm Version dev-master
kokspflanze/bjy-authorize Version ^1.6
xelax90/zf2-language-route Version ^1.0