steinhaug / uarpc
用户访问角色权限配置 - 框架
v1.6.4
2023-12-10 17:34 UTC
Requires
- php: >=8.0.0
- ext-mbstring: *
Requires (Dev)
- steinhaug/mysqli: ^1.6
This package is auto-updated.
Last update: 2024-09-10 19:14:30 UTC
README
用户访问、角色、权限和配置框架 - 管理用户访问的工具。
https://gitlab.com/steinhaug/uarpc/-/wikis/home
https://lucid.app/lucidspark/invitations/accept/19b35103-eaa4-4b0c-82c4-c124a1ac8880
通过 composer 安装
使用 composer 安装库
composer require steinhaug/uarpc
or specify version
composer require "steinhaug/uarpc:^1.*"
init
new uarpc(opt 'table_prefix'); // needed for loading uarpc classes
$uarpc = new UARPC_base($UserId);
... see docs for rest
文档
使用 WIKI 页面文档 或 /docs 文件夹内的 markdown 文件。
需求
手动添加 /dist 文件夹以进行本地开发。
-- 简要历史记录 --
UARPC v1.6.4
为所有类添加 \$GLOBALS['steinhaugUarpcDbPrefix']。
UARPC v1.6.3
修复 composer 需求。
UARPC v1.6.2
添加 UserID 参数,以便可以针对任何用户进行检查。
->havePermission(PermTitle, UserID),
UARPC v1.6.1
将 Mysqli2 移入独立项目