kerneldos / yii2-admin-modules
The Yii2 extension of module management
Installs: 20
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:yii2-extension
Requires
- yiisoft/yii2: ~2.0.0
- yiisoft/yii2-bootstrap: ~2.0.0
Requires (Dev)
- phpunit/phpunit: >=8.0
- squizlabs/php_codesniffer: ^3.0
- yiisoft/yii2-gii: ~2.1.0
README
Install
Via composer
$ composer require --prefer-dist kerneldos/yii2-admin-modules
or add
"kerneldos/yii2-admin-modules": "~1.0"
to the require section of your composer.json
file.
Apply migrations to create required tables
yii migrate --migrationPath=@kerneldos/extmodule/migrations --interactive=0
Usage
Add the module to your main config file for manual config, ex:
'modules' => [ //... 'admin' => [ 'class' => 'kerneldos\extmodule\Module', 'layoutPath' => '@app/views/layouts', 'layout' => 'main', 'as Access' => [ 'class' => 'yii\filters\AccessControl', 'rules' => [ [ 'allow' => true, 'roles' => ['admin'], ], ], ], ], //... ],
Change log
Please see CHANGELOG for more information on what has changed recently.
Testing
$ composer test
Contributing
Please see CONTRIBUTING and CODE_OF_CONDUCT for details.
Security
If you discover any security related issues, please email kerneldos@mail.ru instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.