Download the PHP package myttyy/thinkphp-auth without Composer

On this page you can find all versions of the php package myttyy/thinkphp-auth. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package thinkphp-auth

Thinkphp Auth权限认证类

2019年5月20日 17:10:54

功能特性:

1.是对规则进行认证,不是对节点进行认证。用户可以把节点当作规则名称实现对节点进行认证。

2.可以同时对多条规则进行认证,并设置多条规则的关系(or或者and)

第三个参数可选,枚举值: 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之间时这条规则才会通过。

数据库

composer安装


All versions of thinkphp-auth with dependencies

PHP Build Version
Package Version
Requires php Version >=7.1
topthink/framework Version 6.0.*-dev
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package myttyy/thinkphp-auth contains the following files

Loading the files please wait ....