nordsoftware/lumen-rbac

This package is abandoned and no longer maintained. No replacement package was suggested.

RBAC module for the Lumen framework.

1.0.2 2018-05-25 08:26 UTC

This package is auto-updated.

Last update: 2023-03-09 14:37:42 UTC


README

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.