Skip to content
This repository has been archived by the owner on Mar 3, 2023. It is now read-only.

digiaonline/lumen-rbac

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

66 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lumen RBAC

Code Climate StyleCI Latest Stable Version Total Downloads License

RBAC module for the Lumen PHP framework based on Overseer.

Requirements

  • PHP 5.6 or newer

Usage

Installation

  1. Run the following command to install the package through Composer:
composer require nordsoftware/lumen-rbac
  1. Copy the configuration template in config/rbac.php to your application's config directory and modify according to your needs.

  2. 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.