定制 louisstanley/ci4-shield-username-suggest 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

louisstanley/ci4-shield-username-suggest

Composer 安装命令:

composer require louisstanley/ci4-shield-username-suggest

包简介

A CodeIgniter 4 Shield extension to suggest usernames based on email addresses.

README 文档

README

A CodeIgniter 4 extension that adds username suggestions to Shield's registration process.

Requirements

  • CodeIgniter 4.3+
  • CodeIgniter Shield
  • PHP 7.4+

Installation

composer require louisstanley/ci4-shield-username-suggest

Quick Setup

  1. Copy the Register View Copy the provided register.php view from the package into your CodeIgniter 4 app's views directory. For example:

    cp vendor/louisstanley/ci4-shield-username-suggest/src/Views/register.php app/Views/auth/register.php
    
  2. Set the View in Shield Config In your app/Config/Auth.php, set the custom register view path:

    public $views = [
        'register' => 'auth/register',
    ];

This ensures that Shield uses the modified view with username suggestions during registration.

Features

  • Generates usernames based on email addresses
  • Shows available username options to users
  • Allows one-click selection of suggested usernames

alt text

统计信息

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

GitHub 信息

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

其他信息

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