nordsoftware/lumen-rbac

RBAC module for the Lumen framework.

1.0.2 2018-05-25 08:26 UTC

README

Code Climate Scrutinizer Code Quality StyleCI Latest Stable Version Total Downloads License

RBAC module for the Lumen PHP framework based on Overseer.

Please note that this module is still under active development.

Requirements

Usage

Installation

Run the following command to install the package through Composer:

composer require nordsoftware/lumen-rbac

Configure

Copy the configuration template in config/rbac.php to your application's config directory and modifying according to your needs. For more information see the Configuration Files section in the Lumen documentation.

The available configurations are:

TODO: Write this

Run Artisan

Run php artisan and you should see the new commands in the doctrine:* namespace section.

Bootstrapping

NOTE: The configuration of the module has been moved to the service provider.

Please note that we only support Doctrine for now, but we plan to add support for storing permissions also in memory and using Eloquent.

$app->register('Nord\Lumen\Rbac\Doctrine\DoctrineStorageServiceProvider');
$app->register('Nord\Lumen\Rbac\RbacServiceProvider');

You can now use the Rbac facade or inject the RbacService where needed.

Contributing

Please read the guidelines.

License

MIT. See LICENSE.