Download the PHP package deryabinsergey/yii2-app-extended without Composer
On this page you can find all versions of the php package deryabinsergey/yii2-app-extended. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download deryabinsergey/yii2-app-extended
More information about deryabinsergey/yii2-app-extended
Files in deryabinsergey/yii2-app-extended
Package yii2-app-extended
Short Description Yii 2 Extended Project Template
License BSD-3-Clause
Homepage https://www.yiiframework.com/
Informations about the package yii2-app-extended
Yii 2 Extended Project Template
Install via composer
Benefits
This Project Template based on Advanced Template with some modifications
- add rmrevin / yii2-fontawesome Asset Bundle with Font Awesome 5
- add Bootstrap Dasboard Template to backend
- remove unique key from
user.username
. Authorization by email and password. - add RBAC implementation for users. Use in backend.
- add User CRUD to backend
- make codeception tests valid, using yii2-bootstrap5
- add some tests to backend / create user, acceptance tests for backend
- add selenium to
docker-compose.yml
and docker config atfrontend/tests/acceptance.suite.yml.example
- change php to
yiisoftware/yii2-php:8.1-apache
inDockerfile
- add config to
Dockerfile
for pretty URL - add
urlManagerFrontend
to backend config for making links from backend to frontend
Be careful in environments/dev/frontend/web/index-test.php
and environments/dev/backend/web/index-test.php
removed code to start test on Docker:
All information and documentation available at Advanced Project Template.
Using RBAC
Roles and permissions defined in common/config/params.php
For adding new permission, roles and assigned permissions to roles - should create migration. For example see console/migrations/m221002_102238_initialize_rbac_roles.php
For began i make this permissions
- backend - access to backend
- userCreate - add new users in backend
- userRead - view information about existed users
- userUpdate - can update user information
- userDelete - can delete users (NB: you can soft delete existed users, just set status deleted)
and next roles
- admin has full permissions
- manager has full permissions without delete
- viewer has only read permissions
Default Roles and Permissions in tree view:
Acceptance tests
Complete next steps to enable acceptance tests:
- copy frontend config file
frontend/tests/acceptance.suite.yml.example
tofrontend/tests/acceptance.suite.yml
and backend config filebackend/tests/acceptance.suite.yml.example
tobackend/tests/acceptance.suite.yml
- uncomment sections
selenium-event-bus
,selenium-sessions
,selenium-session-queue
,selenium-distributor
,selenium-router
,chrome
,firefox
indocker-compose.yml
- build tests:
./vendor/bin/codecept build
Run all tests: ./vendor/bin/codecept run
All versions of yii2-app-extended with dependencies
yiisoft/yii2 Version ~2.0.46
yiisoft/yii2-symfonymailer Version ~2.0.3
yiisoft/yii2-bootstrap5 Version ~2.0.2
rmrevin/yii2-fontawesome Version ~3.7.0