定制 beastbytes/yii-tracy-panel-user 二次开发

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

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

beastbytes/yii-tracy-panel-user

Composer 安装命令:

composer require beastbytes/yii-tracy-panel-user

包简介

User panel for Yii Tracy

README 文档

README

The Yii Tracy Panel User package is a panel for Yii Tracy (integration of the Tracy debugging toolinto Yii3) that provides information about the current user.

Requirements

  • PHP 8.1 or higher

Installation

Install the package using Composer:

Either:

composer require-dev beastbytes/yii-tracy-panel-user

or add the following to the require-dev section of your composer.json

"beastbytes/yii-tracy-panel-user": "<version_constraint>"

Information Displayed

Tab

By default the current user ID is shown. This can be changed by setting StabValue in the constructor (see Tab Value).

Panel

The panel shows:

  • the current user ID
  • assigned Roles (if RBAC enabled)
  • granted Permissions (if RBAC enabled)
  • user defined parameters (see Panel Parameters)

The information shown can be customised.

Customisation

Tab Value

By default, the current user ID is shown on the tab. This can be changed by setting StabValue in the constructor.

$tabValue is an anonymous function that takes the current identity (IdentityInterface) as its parameter and returns a string.

User Parameters

Additional information about the current user can be shown on the user panel by setting $userparameters in the constructor.

$userParameters is an anonymous function that takes the current identity (IdentityInterface) as its parameter and returns parameters to show as array{string: string} where the key is the name of the parameter and value its value.

id2pk

Depending on how user IDs - Primary Keys - are stored in the database, if using (RBAC)[https://github.com/yiisoft/rbac] it may be necessary to convert the user ID in order to get user Roles and Permissions. An example is when using UUIDs as the primary key and storing it in the database in binary format.

id2pk is an anonymous function that takes the string representation of the user ID as its parameter and returns the Primary Key representation.

License

The BeastBytes Yii Tracy Panel User package is free software. It is released under the terms of the BSD License. Please see LICENSE for more information.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2025-06-29

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固