Download the PHP package shiwuhao/laravel-rbac without Composer

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

Laravel RBAC

Latest Stable Version PHP Version License

现代化的 Laravel 12+ RBAC 扩展包,采用 Action 模式架构,提供完整的基于角色的访问控制(RBAC)和数据权限管理功能。


📖 文档导航

文档 说明
完整使用指南 详细的 API 使用、路由配置、权限管理等
命令行工具 Artisan 命令详解和使用示例
快速开始 安装配置和基本用法
更新日志 版本变更记录

✨ 特性

📋 版本要求

Package Laravel PHP
2.0.x 12.x >= 8.2

📦 安装

发布配置和迁移文件

运行迁移

🎯 核心架构 - Action 模式

什么是 Action 模式?

Action 是一个独立的业务逻辑单元,每个 Action 负责一个具体的业务操作。

Action 的优势

🚀 快速开始

1. 安装依赖

2. 发布配置和迁移

3. 配置用户模型

在 .env 中配置:

或在 config/rbac.php 中配置:

4. 在用户模型中使用 Trait

5. 开始使用

💡 更多详细用法请查看 → 完整使用指南

📚 核心功能

角色管理

权限管理

权限检查

📖 详细 API 文档 → 完整使用指南
🔧 命令行工具 → Artisan 命令

🎨 高级功能

数据范围权限

动态表达式支持

自定义数据范围支持在 config 中使用动态表达式,运行时自动解析:

时间表达式:

用户属性表达式:

使用示例:

实例权限

自定义 Action

📖 更多高级用法 → 完整使用指南

🔧 Artisan 命令

🔧 完整命令列表 → 命令行工具文档

⚙️ 配置选项

主要配置项:

📖 完整配置说明 → 完整使用指南

📝 License

MIT License. 详见 LICENSE 文件。

🤝 贡献

欢迎提交 Issue 和 Pull Request!

👤 作者


All versions of laravel-rbac with dependencies

PHP Build Version
Package Version
No informations.
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 shiwuhao/laravel-rbac contains the following files

Loading the files please wait ...