nordsoftware/lumen-rbac
最新稳定版本:1.0.2
Composer 安装命令:
composer require nordsoftware/lumen-rbac
包简介
RBAC module for the Lumen framework.
README 文档
README
RBAC module for the Lumen PHP framework based on Overseer.
Requirements
- PHP 5.6 or newer
Usage
Installation
- Run the following command to install the package through Composer:
composer require nordsoftware/lumen-rbac
-
Copy the configuration template in
config/rbac.phpto your application'sconfigdirectory and modify according to your needs. -
Add the following lines to your
bootstrap/app.php:
$app->register('Nord\Lumen\Rbac\Doctrine\DoctrineStorageServiceProvider'); $app->register('Nord\Lumen\Rbac\RbacServiceProvider');
You should now have a bunch of new Artisan commands available under the doctrine namespace. In your code, you can
either inject RbacService or use the Rbac facade to access the service.
Contributing
Please read the guidelines.
License
MIT. See LICENSE.
统计信息
- 总下载量: 58k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 26
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 1
其他信息
- 授权协议: MIT
- 更新时间: 2015-06-19