Download the PHP package helingfeng/simple-permission without Composer

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

simple-permission

Laravel 扩展包,让后端的菜单与权限控制如此轻松,基于角色的权限控制,简单所以高效

Composer 安装

数据库迁移

菜单结构 ?

菜单 menu.php 文件,定义了菜单与权限的基础信息。为了简单起见,菜单固定三层级结构, 第一第二层级作为模块声明定义,第三层级做有效链接定义,详情可以直接浏览menu.php 文件。

字段 描述
slug 作为菜单标识字符串,同层级下不允许重复出现
icon 图标 CSS CLASS 配置,例如 fa-dashboard
route 跳转链接,具体根据系统情况定义,此参数第三层级才有效
expect 配置为1时,弃用默认权限(查看、编辑、删除)
permission 自定义权限,KEY-VALUE 组成,允许覆盖默认(查看、编辑、删除)权限

权限命令

如何使用

对访问的路由进行权限配置,此处的权限标识与menu.php文件保持一致即可

自定义模板标签


All versions of simple-permission with dependencies

PHP Build Version
Package Version
Requires laravel/framework 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 helingfeng/simple-permission contains the following files

Loading the files please wait ....