定制 piko/user-module 二次开发

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

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

piko/user-module

最新稳定版本:v0.5

Composer 安装命令:

composer require piko/user-module

包简介

Piko user management module.

README 文档

README

User management module for Piko based projects.

Features

  • Optional registration
  • Registration with an optional confirmation per mail
  • Password recovery
  • Account and profile management
  • User management interface
  • Permissions management (RBAC)
  • Support for MYSQL ans Sqlite

Installation

1 - Install module via composer:

composer require piko/user-module

2 - Edit your Piko config :

[
  'components' => [
    // ...
    'Piko\User' => [
        'identityClass' => 'Piko\UserModule\Models\User',
        'checkAccess' => 'Piko\UserModule\AccessChecker::checkAccess'
    ],
  ],
  'modules' => [
    // ...
    'user' => [
      'class' => 'Piko\UserModule',
      'adminRole' => 'admin',
      'allowUserRegistration' => true
    ],
  ],
  'bootstrap' => ['user'],
]

3 - Install module tables. Create a php file at the root folder of your project (ex: install.php) and put this code :

require(__DIR__ . '/vendor/autoload.php');

(new \piko\Application(require __DIR__ . '/config.php'));

\piko\user\Module::install();
\piko\user\Module::createUser();

4 - Execute install.php on the command line : php install.php and follow instructions to create the admin user.

Routes

  • /user/default/login : Process login
  • /user/default/logout : Process logout
  • /user/default/register : Process user registration
  • /user/default/edit : User account form
  • /user/admin/users : Manage users, roles, permissions

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: LGPL-3.0
  • 更新时间: 2025-10-07