nordsoftware / lumen-rbac
RBAC module for the Lumen framework.
Installs: 47 755
Dependents: 0
Suggesters: 1
Security: 0
Stars: 23
Watchers: 11
Forks: 3
Open Issues: 0
Requires
- php: >=5.6
- crisu83/overseer: ~0.4
Requires (Dev)
- laravel/lumen-framework: ^5.4
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.php
to your application'sconfig
directory 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.