smoren/yii2-module-access-manager

Access manager and control module for Yii2

Installs: 309

Dependents: 0

Suggesters: 0

Security: 0

Stars: 8

Watchers: 5

Forks: 4

Open Issues: 0

Type:yii2-extension

pkg:composer/smoren/yii2-module-access-manager

v0.3.0 2025-01-23 08:35 UTC

This package is auto-updated.

Last update: 2025-09-23 13:53:55 UTC


README

Access manager and control module for Yii2

How to install to Yii2 project

composer require smoren/yii2-module-access-manager

After install

Include into Yii2 config:

...
'modules' => [
    ...
    'access' => ['class' => 'Smoren\Yii2\AccessManager\Module'],
],
...
'bootstrap' => [
    ...
    'access',
],
...
'controllerMap' => [
    'migrate' => [
        'class' => MigrateController::class,
        'migrationPath' => [
            ...
            'vendor/smoren/yii2-module-access-manager/src/migrations',
        ],
    ],
],
...

Include into Yii2 env file:

...
ACCESS_WORKER_TABLE='the existing table you want to be access worker table'
...

Then run migrations:

php yii migrate

Also you can choose another module id if you already have your own module named "access".