bishwopl/bpluser
Composer 安装命令:
composer require bishwopl/bpluser
包简介
An user registration and authentication module for laminas-mvc based on bishwopl/zf3-circlical-user
关键字:
README 文档
README
An user registration, authentication and authorization module for Laminas-MVC based on saeven/zf3-circlical-user
Features
- User Registration
- Forgot password feature
- View helpers
- Laminas Developers Toolbar extention
Requirements
Check composer.json file for requirements.
Installation
- Run following from project root directory
$ composer require bishwopl/bpluser
- Enable module in application.config.php
<?php return [ 'modules' => [ // ... 'CirclicalUser', 'BplUser', ], // ... ];
- Follow configuration step
- Create database using following command
./vendor/doctrine/doctrine-module/bin/doctrine-module orm:schema-tool:create
Configuration
bishwopl/bpluser & bishwopl/zf3-circlical-user
Copy config/bpluser.local.php.dist file to your configuration folder and remove .dist from its name. Module configuration required for bishwopl/zf3-circlical-user is also included in this config file so separate configuration for bishwopl/zf3-circlical-user is not necessary.
Options
Controller plugins
- Change Password
$this->bpluser()->changePassword(UserInterface $user, $newPassword);
- Change Email
$this->bpluser()->changeEmail(UserInterface $user, $newEmail);
- Is Email in use
$this->bpluser()->isEmailInUse($email);
- Verify password
$this->bpluser()->verifyPassword(UserInterface $user, $password);
- Save Profile
$this->bpluser()->saveProfile(UserInterface $user);
- Can access action
$this->bpluser()->isAllowedAction($controllerName, $action);
To do
- Add Remember Me feature
统计信息
- 总下载量: 168
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 3
- 点击次数: 0
- 依赖项目数: 3
- 推荐数: 0
其他信息
- 授权协议: MPL-2.0
- 更新时间: 2018-02-15