承接 xelax90/zf-user-entity 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

xelax90/zf-user-entity

Composer 安装命令:

composer require xelax90/zf-user-entity

包简介

Provides a user and role entity to work with ZfcUser, Doctrine 2 and BjyAuthorize

README 文档

README

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.

composer require xelax90/zf-user-module

Then add XelaxLanguageRoute to your config/application.config.php and run the doctrine schema update to create the database table:

php vendor/bin/doctrine-module orm:schema-tool:update --force 

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:

  1. Create your entity in your namespace and subclass \XelaxUserEntity\Entity\User. Don't forget the Doctrine annotations
  2. Change user_entity_class configuration option in config/autoload/xelax-user-entity.global.php to your entity class

统计信息

  • 总下载量: 25
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: GPLv2
  • 更新时间: 2016-12-10

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固