Download the PHP package ouhaohan8023/easy-rbac without Composer

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

Easy-Rbac

1. 安装

2. 配置

3. EasyRbac 静态方法列表

方法名 描述 参数 返回值
syncPermission 同步后端权限 无 无
permissionTree 返回权限树 无 树状结构的路由树
initMenus 使用前端路由初始化菜单 前端路由文件构成的JSON字符串 无
addMenu 新增菜单 无 bool
updateMenu 更新菜单 $data 要更新的内容,$id 要更新的ID bool
menuTree 菜单树 无 菜单树
roleTree 角色树 无 角色树
addRole 新增角色 $data bool
updateRole 更新角色 $data 要更新的内容,$id 要更新的ID bool
getMenusByUser 获取用户的可用菜单树 $user 当前用户 菜单树
getPermissionsByUser 获取用户的可用权限列表 $user 当前用户 权限数组
persistenceMenus 将menus表的数据持久化到本地 无 无
restoreMenus 将menus表的数据持久化到本地 无 无
delMenu 删除菜单 $id 菜单ID bool

4. 命令

命令名 描述
easy:menu-persist 将菜单从数据库导出到文件中
easy:menu-recover 将菜单从文件恢复到数据库中
easy:sync-permission 同步路由

5. 使用


All versions of easy-rbac with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
spatie/laravel-permission Version ^6.4
kalnoy/nestedset Version ^6.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 ouhaohan8023/easy-rbac contains the following files

Loading the files please wait ...