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
-
Copy the Register View Copy the provided
register.phpview 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 -
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
统计信息
- 总下载量: 7
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-05-04
