Download the PHP package ddjuly/abac without Composer

On this page you can find all versions of the php package ddjuly/abac. 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 abac

关于abac权限管理

不装逼,不做作,不盲目滥用技术,只为实现功能,使用简单,功能齐全👻👻

安装

composer require安装

添加到服务提供者

  1. 在config app.php providers数组中追加

  2. 在config app.php aliases数组中追加

创建abac表,默认abac_前缀,当然你也可以改成你自己的,打命令会有提示😑

如何使用

中间件使用

您也可以copy该中间件出来进行自定义,呵呵!

Laravel坑逼路由终极大法,特么我们路由文件一路达到1k行,哦不,是2k行,这个锅Laravel必须得背

终极大法配合权限管理很容易达到高潮

大法需要获取路由到的function中的注释,比如:@permission

当然你可以修改,比如@role、@ability,根据自己的想法去自定义

这里有一个需要注意的地方就是,大法路由不能通过URL类来直接生成url,这是一个问题,本银是通过改那该死的源码实现的

例子:

添加角色

添加权限

添加权限到角色中

添加角色到用户

单独添加权限给用户

删除权限(并删除所有关联关系)

删除角色(并删除所有关联关系)

移除角色中的权限

移除用户中独立的权限

移除用户的角色

Blade模板使用


All versions of abac with dependencies

PHP Build Version
Package Version
Requires illuminate/support Version ^5.5
illuminate/database Version ^5.5
illuminate/console Version ^5.5
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 ddjuly/abac contains the following files

Loading the files please wait ....