PHPackages                             dmstr/yii2-rbac-migration - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Validation &amp; Sanitization](/categories/validation)
4. /
5. dmstr/yii2-rbac-migration

ActiveLibrary[Validation &amp; Sanitization](/categories/validation)

dmstr/yii2-rbac-migration
=========================

\_\_\_\_\_

2.0.1(3y ago)032.8k—0%1BSD-3-ClausePHPPHP ^7.3 || ^8.0

Since May 11Pushed 3y ago3 watchersCompare

[ Source](https://github.com/dmstr/yii2-rbac-migration)[ Packagist](https://packagist.org/packages/dmstr/yii2-rbac-migration)[ Docs](https://www.dmstr.io/)[ RSS](/packages/dmstr-yii2-rbac-migration/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (3)Versions (5)Used By (0)

Yii RBAC Migration
==================

[](#yii-rbac-migration)

This migration allows one to define the desired 'state' of rbac item structure.

A multidimensional array is used to define how the desired item structure should look after the migration.

Following the style of puppet config, the main attribute defining the desired or expected state of an item is the `ensure` parameter.

**Since this type of migration change security related data, it is recommended to rather define a defensive configuration.**

Installation
------------

[](#installation)

```
composer require dmstr/yii2-rbac-migration
```

Example usage
-------------

[](#example-usage)

```
