demyanenkomaks / yii2-base
Yii 2 Advanced Project Template
3.0.1
2023-10-20 09:38 UTC
Requires
- php: >=8.1
- kartik-v/yii2-bootstrap5-dropdown: @dev
- kartik-v/yii2-detail-view: dev-master
- kartik-v/yii2-export: dev-master
- kartik-v/yii2-grid: @dev
- mix8872/yii2-config: ^3.0
- mix8872/yii2-files: ^2.0
- mix8872/yii2-minify-view: dev-master
- mix8872/yii2-user-admin: dev-master
- paulzi/yii2-nested-sets: ^1.0
- rmrevin/yii2-fontawesome: ~3.5
- vlucas/phpdotenv: ^5.3
- yiisoft/yii2: ~2.0.45
- yiisoft/yii2-bootstrap5: 2.0.3
- yiisoft/yii2-symfonymailer: ~3.0.0
Requires (Dev)
- codeception/verify: ^2.2
- yiisoft/yii2-debug: ~2.1.0
- yiisoft/yii2-faker: ~2.0.0
- yiisoft/yii2-gii: ~2.2.0
This package is auto-updated.
Last update: 2024-11-20 12:06:25 UTC
README
Yii 2 Advanced Project Template
DIRECTORY STRUCTURE
common
config/ contains shared configurations
mail/ contains view files for e-mails
models/ contains model classes used in both backend and frontend
tests/ contains tests for common classes
console
config/ contains console configurations
controllers/ contains console controllers (commands)
migrations/ contains database migrations
models/ contains console-specific model classes
runtime/ contains files generated during runtime
backend
assets/ contains application assets such as JavaScript and CSS
config/ contains backend configurations
controllers/ contains Web controller classes
models/ contains backend-specific model classes
runtime/ contains files generated during runtime
tests/ contains tests for backend application
views/ contains view files for the Web application
web/ contains the entry script and Web resources
frontend
assets/ contains application assets such as JavaScript and CSS
config/ contains frontend configurations
controllers/ contains Web controller classes
models/ contains frontend-specific model classes
runtime/ contains files generated during runtime
tests/ contains tests for frontend application
views/ contains view files for the Web application
widgets/ contains frontend widgets
vendor/ contains dependent 3rd-party packages
environments/ contains environment-based overrides
web/ contains frontend the entry script and Web resources
INSTALLATION
Install via Composer
If you do not have Composer, you may install it by following the instructions at getcomposer.org.
composer create-project demyanenkomaks/yii2-base or git clone ...
php init
php yii migrate-all
Update project
git pull --ff-only origin dev
composer install
php yii migrate --interactive=0
Console Rbac
php yii rbac/remove-all Удалить все данные: роли, разрешения, правила и назначения
php yii rbac/init-role-admin Добавленеи роли "admin" с доступом Управление пользователями
php yii rbac/init-role-admin-all Добавленеи роли "admin" с доступом ко всему
php yii rbac/add-admin {login} {password} Добавленеи пользователя с ролью "admin"
php yii rbac/recovery-role-admin {login} Востановление пользователю роли "admin"
php yii rbac/recovery-password {login} {password} Востановление пароля пользователю