承接 ggamover/yii2-aurinko 相关项目开发

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

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

ggamover/yii2-aurinko

Composer 安装命令:

composer require ggamover/yii2-aurinko

包简介

Authentication module

README 文档

README

Aurinko is a Yii2 authentication module that provides user management, login, registration, and password recovery functionality. It includes ready-to-use controllers, models, and email templates to quickly integrate authentication into your application.

Installation

The preferred way to install this extension is through Composer.

Either run

php composer.phar require --prefer-dist ggamover/yii2-aurinko "*"

or add

"ggamover/yii2-aurinko": "*"

to the require section of your composer.json file.

Usage

Web Application Configuration

Add the module to your application configuration:

    'modules' => [
        ...
        'aurinko' => [
            'class' => ggamover\aurinko\Module::class,
        ],
    ],

To enable the built-in mail templates, add the module to the bootstrap section:

    'bootstrap' => [
        'aurinko',
        ...
    ],

Add the controller map

    'controllerMap' => [
        ...
        'auth' => [
            'class' => ggamover\aurinko\controllers\DefaultController::class,
            'viewPath' => '@vendor/ggamover/yii2-aurinko/views/default',
        ],
        'password' => [
            'class' => ggamover\aurinko\controllers\PasswordController::class,
            'viewPath' => '@vendor/ggamover/yii2-aurinko/views/password'
        ],
    ],

Configure the user component:

    'components' => [
        ...
        'user' => [
            'identityClass' => ggamover\aurinko\models\User::class,
            'enableSession' => false, // if rest api
            'loginUrl' => ['auth/login'],
            'enableAutoLogin' => true,
        ],
    ]

Console Application Configuration

To enable database migrations, add the migration path to the migrate controller:

    'controllerMap' => [
        ...
        'migrate' => [
            'class' => \yii\console\controllers\MigrateController::class,
            'migrationPath' => [
                '@app/migrations',
                '@vendor/ggamover/yii2-aurinko/migrations',
            ],
        ]
    ],

Add the module to enable console commands:

'modules' => [
    ...
        'auth' => [
            'class' => ggamover\aurinko\Module::class
        ]
    ],

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-04-05

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固