定制 cryodrift/user 二次开发

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

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

cryodrift/user

最新稳定版本:0.1.30

Composer 安装命令:

composer require cryodrift/user

包简介

User management and authentication helpers.

README 文档

README

User-related utilities and web endpoints (login, logout, 2FA, password and email management).

Routes

All routes are provided by methods annotated with @web in src/user/Web.php and are accessible under /user/{method}. Available routes and parameters:

  • GET or POST /user/login — login form and submission

    • params:
      • user (POST only, required, string)
      • password (POST only, required, string)
      • code (POST only, optional, string): 2FA code (if 2FA enabled)
  • GET /user/logout — destroy session and redirect

    • params: none
  • GET /user/admin — user administration page

    • params: none
  • GET or POST /user/index — start page / 2FA verification

    • params:
      • query (POST only, optional, string): 2FA verification code
  • GET or POST /user/api — grouped API endpoints by command

    • params:
      • command (required, string): one of 2fa | password | email | emaildelete
      • for command=2fa:
        • params: none (returns 2FA setup info)
      • for command=password:
        • value (POST, JSON object): { "old_password": string, "new_password": string }
      • for command=email:
        • value (POST, JSON object): { "type": string, "name": string, "host": string, "password": string }
      • for command=emaildelete:
        • data-id (POST, JSON object): { "data-id": string } — encrypted host id

CLI

  • Show commands: php index.php /user/cli -help

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: Apache-2.0
  • 更新时间: 2026-01-15

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固