Download the PHP package kufeisoft/auth without Composer
On this page you can find all versions of the php package kufeisoft/auth. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package auth
auth
By 酷飞软件
Installation
Use Composer to install the library.
Basic usage
- 权限认证类
- 功能特性:
-
1,是对规则进行认证,不是对节点进行认证。用户可以把节点当作规则名称实现对节点进行认证。
-
2,可以同时对多条规则进行认证,并设置多条规则的关系(or或者and)。第三个参数为and时表示,用户需要同时具有规则1和规则2的权限。 当第三个参数为or时,表示用户值需要具备其中一个条件即可。默认为or
- 3,一个用户可以属于多个用户组(think_auth_group_access表 定义了用户所属用户组)。我们需要设置每个用户组拥有哪些规则(think_auth_group 定义了用户组权限)
- 4,支持规则表达式。 在think_auth_rule 表中定义一条规则时,如果type为1, condition字段就可以定义规则表达式。 如定义{score}>5 and {score}<100 表示用户的分数在5-100之间时这条规则才会通过。
-
- 对应的数据表如下:
Advanced usage
想好了再写
Built-in validation reader
想好了再写
License
This bundle is under the MIT license. For the full copyright and license information please view the LICENSE file that was distributed with this source code.
All versions of auth with dependencies
PHP Build Version
Package Version
The package kufeisoft/auth contains the following files
Loading the files please wait ....