https://github.com/librecmscom/yii2-user
Flexible user registration and authentication module for Yii2
https://github.com/librecmscom/yii2-user
yii2 yii2-extension yii2-modules yii2-user
Last synced: 8 months ago
JSON representation
Flexible user registration and authentication module for Yii2
- Host: GitHub
- URL: https://github.com/librecmscom/yii2-user
- Owner: librecmscom
- License: mit
- Created: 2016-09-06T10:14:33.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-11-07T09:51:41.000Z (over 8 years ago)
- Last Synced: 2025-04-08T13:45:35.251Z (12 months ago)
- Topics: yii2, yii2-extension, yii2-modules, yii2-user
- Language: PHP
- Homepage:
- Size: 779 KB
- Stars: 3
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.md
Awesome Lists containing this project
README
# yii2-user
[](https://packagist.org/packages/yuncms/yii2-user)
[](https://packagist.org/packages/yuncms/yii2-user)
[](https://www.versioneye.com/php/yuncms:yii2-user/references)
[](http://travis-ci.org/yuncms/yii2-user)
[](https://www.versioneye.com/php/yuncms:yii2-user/dev-master)
[](https://packagist.org/packages/yuncms/yii2-user)
Most of web applications provide a way for users to register, log in or reset
their forgotten passwords. Rather than re-implementing this on each application,
you can use Yii2-user which is a flexible user management module for Yii2 that
handles common tasks such as registration, authentication and password retrieval.
The latest version includes following features:
* 注册使用邮箱激活账号
* 使用社交账户注册
* 密码找回
* 账号和个人资料管理
* 控制台命令
* 用户管理接口
## Installation
The preferred way to install this extension is through [composer](http://getcomposer.org/download/).
Either run
```
composer require --prefer-dist yuncms/yii2-user
```
or add
```json
"yuncms/yii2-user": "~2.0.0"
```
to the `require` section of your composer.json.
## Configuring your application
Add following lines to your main configuration file:
```
'modules' => [
'user' => [
'class' => 'yuncms\user\frontend\Module',
],
],
```
## Updating database schema
After you downloaded and configured Yii2-user, the last thing you need to do is updating your database schema by applying the migrations:
$ php yii migrate/up --migrationPath=@vendor/yuncms/yii2-user/migrations
## Thanks to
* [Yii framework](https://github.com/yiisoft/yii2)
* [dektrium](https://github.com/dektrium/yii2-user)
## License
This is released under the MIT License. See the bundled [LICENSE.md](LICENSE.md)
for details.