piwind/username-request
Composer 安装命令:
composer require piwind/username-request
包简介
Allow users to request new usernames
README 文档
README
A Flarum extension. Allows users to request new usernames which can be approved by moderators or admins.
About This Fork
This repository is a fork of FriendsOfFlarum/username-request, with bug fixes and text optimization.
Installation & Updating
Install with composer:
composer require piwind/username-request:"*"
Updating:
composer update piwind/username-request
Usage
If nickname changes are open to all users:
- In the
flarum/nicknamesextension, set the "Edit Own Nickname" permission to "Members". - In this extension, set the "Request nickname change" permission to "Admin" only.
If nickname changes require approval:
- In the
flarum/nicknamesextension, set the "Edit Own Nickname" permission to "Admin" only. - In this plugin, set the "Request nickname change" permission to "Members".
With these permission settings, the user settings page will display only one nickname change button (instead of two duplicate buttons) for all non-admin accounts.
如果更改昵称是开放的,则插件 flarum/nicknames 中的 "更改个人昵称" 的权限设置为 "注册用户",本插件的 "申请更改昵称" 的权限设置为 "管理"。
如果更改昵称需要申请并审核通过,则插件 flarum/nicknames 中的 "更改个人昵称" 的权限设置为 "管理",本插件的 "申请更改昵称" 的权限设置为 "注册用户"。
基于以上权限设置,能确保除了管理员之外的所有账户,用户设置页都是只显示一个更改昵称的按钮,而不是两个重复的按钮。
TODO
- resources/views/emails/nicknameRequestRejected.blade.php 下的old_nickname用的是$user->display_name,这个是不一定的
- 申请更改用户名、申请更改昵称,点按钮后如果已经有提交的申请会弹出不同的窗口,但是刷新网页后无法看到申请的状态(是否已经提交申请请求)
- 限制n天内只能修改一次用户名/昵称
Links
piwind/username-request 适用场景与选型建议
piwind/username-request 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 267 次下载、GitHub Stars 达 0, 最近一次更新时间为 2025 年 05 月 16 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「flarum」 「Friends of Flarum」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 piwind/username-request 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 piwind/username-request 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 piwind/username-request 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Eloquent Befriended brings social media-like features like following, blocking and filtering content based on following or blocked models.
This package gives Eloquent models the ability to manage their followers.
Adds more BBCode
Output of discussions lists in form of cards
This package gives Eloquent models the ability to manage their friendships.
Allow users to log in with QQ
统计信息
- 总下载量: 267
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 9
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-05-16