eugenzor/zfc-user-admin

该包的最新版本(dev-master)没有可用的许可信息。

ZfcUser的管理界面。

dev-master 2016-08-11 20:21 UTC

This package is not auto-updated.

Last update: 2024-09-22 06:46:00 UTC


README

版本 0.1

简介

此模块提供了一个创建/编辑/删除用户的接口。

安装

使用composer

  1. eugenzor/zfc-user-admin(版本dev-master)添加到需求中
  2. 在composer上运行update命令

手动

  1. 将此项目克隆到您的./vendor/目录中,并在您的application.config.php文件中启用它。
  2. https://github.com/juriansluiman/ZfcAdmin克隆到您的./vendor/目录中,并在您的application.config.php文件中启用它。

需求

  1. ZfcAdmin
  2. ZfcUser

用法

覆盖默认模块配置

<zfc-user-admin>/config/ZfcUserAdmin.global.php.dist复制到<project root>/autoload/ZfcUserAdmin.global.php并编辑所需的模块选项(完整列表将在文档中稍后添加,目前您可以在<zfc-user-admin>/src/Options/ModuleOptions.php中找到所有可用的选项 - 只需查看类属性,并将大写转换为连字符加小写,例如 createUserAutoPassword -> create_user_auto_password)。例如。

<?php
/**
 * ZfcUserAdmin Configuration
 */
$settings = array(
    'user_mapper' => 'ZfcUserAdmin\Mapper\UserZendDb',
    'user_list_elements' => array('Id' => 'id', 'Name' => 'display_name', 'Email address' => 'email'),
    'create_user_auto_password' => false,
    ...
);

/**
 * You do not need to edit below this line
 */
return array(
    'zfcuseradmin' => $settings
);

TODO:添加更多用法信息和模块选项列表

作者