# yii\rbac

> 8 classes, 2 interfaces of the yii\rbac namespace.

[API reference](/docs/api/index.md) › [yii](/docs/api/yii/index.md) › rbac

## Classes

| Class | Summary |
| --- | --- |
| [`Assignment`](/docs/api/yii/rbac/assignment/index.md) | Assignment represents an assignment of a role to a user. |
| [`BaseManager`](/docs/api/yii/rbac/basemanager/index.md) abstract | BaseManager is a base class implementing [`ManagerInterface`](/docs/api/yii/rbac/managerinterface/index.md) for RBAC management. |
| [`DbManager`](/docs/api/yii/rbac/dbmanager/index.md) | DbManager represents an authorization manager that stores authorization information in database. |
| [`Item`](/docs/api/yii/rbac/item/index.md) | For more details and usage information on Item, see the [guide article on security authorization](/docs/guide/security-authorization/index.md). |
| [`Permission`](/docs/api/yii/rbac/permission/index.md) | For more details and usage information on Permission, see the [guide article on security authorization](/docs/guide/security-authorization/index.md). |
| [`PhpManager`](/docs/api/yii/rbac/phpmanager/index.md) | PhpManager represents an authorization manager that stores authorization information in terms of a PHP script file. |
| [`Role`](/docs/api/yii/rbac/role/index.md) | For more details and usage information on Role, see the [guide article on security authorization](/docs/guide/security-authorization/index.md). |
| [`Rule`](/docs/api/yii/rbac/rule/index.md) abstract | Rule represents a business constraint that may be associated with a role, permission or assignment. |

## Interfaces

| Interface | Summary |
| --- | --- |
| [`CheckAccessInterface`](/docs/api/yii/rbac/checkaccessinterface/index.md) | For more details and usage information on CheckAccessInterface, see the [guide article on security authorization](/docs/guide/security-authorization/index.md). |
| [`ManagerInterface`](/docs/api/yii/rbac/managerinterface/index.md) | For more details and usage information on ManagerInterface, see the [guide article on security authorization](/docs/guide/security-authorization/index.md). |