{"repo":"yiisoft/rbac-cycle-db","free":true,"listed":false,"github":"https://github.com/yiisoft/rbac-cycle-db","clone":"git clone https://github.com/yiisoft/rbac-cycle-db.git","description":"RBAC Cycle Database storage","language":"PHP","stars":17,"topics":["yii3","rbac","spiral","cycle","hacktoberfest","database"],"license":"BSD-3-Clause","category":"databases-storage","readme_excerpt":"Yii RBAC Cycle Database The package provides Cycle Database storage for Yii RBAC. Detailed build statuses: RDBMS Status ---------------------- ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- SQLite MySQL PostgreSQL Microsoft SQL Server Requirements - PHP 8.1 or higher. - In the case of using with SQLite, a minimal required version is 3.8.3. - In the case of using with SQL Server, a minimal required version of PDO is 5.11.1. Installation The package could be installed with composer: General usage Configuring database connection Configuration depends on a selected driver. Here is an example for PostgreSQL: More comprehensive examples can be found at Cycle Database docs. Working with migrations This package uses Cycle Migrations for managing database tables required for storages. There are three tables in total ( yii rbac prefix is used). Items storage: - yii rbac item . - yii rbac item child . Assignments storage: - yii rbac assignment . Configuring migrator and capsule For configuring $databaseManager , see previous section. Because item and assignment storages are completely independent, migrations are separated as well to prevent the creation of unused tables. So, for example, if you only want to use assignment storage, adjust $migrationsSubfolders variable like this: Applying migrations Reverting migrations Using storages The storages are not inten","default_branch":null,"files":null,"tree":[],"storefront":"/r/yiisoft","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/yiisoft/rbac-cycle-db/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}