Download the PHP package mingzaily/lumen-permission without Composer

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

lumen-permission (RBAC Frame)

Travis (.org) StyleCI GitHub repo size Packagist PHP Version Support Packagist Version Packagist License

简体中文 | English

开始

安装

第一步,composer安装

安装成功后,复制以下文件

同时也需要把lumen-framework核心框架的auth.php配置文件复制出来

然后在 bootstrap/app.php, 根据需要注册PermissionMiddlewarePermissionRouteMiddlewareRoleMiddleware(用法情况使用说明)

在同个文件下, 注册扩展包的配置文件,lumen-permission的服务器提供类,和cache别名

接着,在.envconfig/database.php配置数据库连接参数

运行迁移文件为扩展包创建表:

使用

用户分配,删除,更换角色

获取第一个角色

获取所有角色

判断是否有该角色

角色分配,删除,同步权限

角色查看权限

判断角色是否有该权限

也可以通过懒加载进行获取角色及相关权限

中间件

PermissionRouteMiddleware

PermissionMiddleware

RoleMiddleware

超级管理员设置

感谢

本扩展基于 spatie/laravel-permission 进行更改

不同点

License

The MIT License (MIT). Please see License File for more information.


All versions of lumen-permission with dependencies

PHP Build Version
Package Version
Requires php Version ^7.2.5
illuminate/auth Version ^6.0|^7.0
illuminate/container Version ^6.0|^7.0
illuminate/contracts Version ^6.0|^7.0
illuminate/database Version ^6.0|^7.0
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 mingzaily/lumen-permission contains the following files

Loading the files please wait ....