pa3py6aka / yii2-advanced-optimized
Yii2 optimized template based on advanced template
Installs: 2
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 2
Language:CSS
Type:project
Requires
- php: >=7.1
- dmstr/yii2-adminlte-asset: ^2.1
- fishvision/yii2-migrate: *
- yiisoft/yii2: ~2.0.14
- yiisoft/yii2-authclient: ~2.1.0
- yiisoft/yii2-bootstrap: ~2.0.0
- yiisoft/yii2-bootstrap4: ^2.0
- yiisoft/yii2-swiftmailer: ~2.0.0 || ~2.1.0
Requires (Dev)
- codeception/base: ^2.4.0
- codeception/verify: ~1.0.0
- phpunit/phpunit: ~6.5.5
- roave/security-advisories: dev-master
- symfony/browser-kit: >=2.7 <=4.2.4
- yiisoft/yii2-debug: ~2.1.0
- yiisoft/yii2-faker: ~2.0.0
- yiisoft/yii2-gii: ~2.1.0
This package is auto-updated.
Last update: 2024-10-29 05:16:58 UTC
README
Yii 2 Advanced and Slightly Optimized Template
Yii 2 Advanced Optimized Project Template is the fork of Yii2 Advanced template.
Note: This is alpha version of template. All contributings are welcome!
Whats new
- Uses Bootstrap 4
- Authorization forms in modal blocks with ajax validation
- Authorization by social networks using
yiisoft/yii2-authclient
- Default RBAC. Uses three roles -
user
,moderator
,admin
. User can manage his content, moderator can manage all users content, admin has moderators access. You can apply to admins more privileges. Manage it inconsole/controllers/RbacController.php
. After changes, executephp yii rbac/init
command in the terminal (of course you must be in project directory). - IDE autocompletion for custom components. Not forget exclude or "Mark as Plain Text" vendor/yiisoft/yii2/Yii.php file.
- Added frontend and backend url manager components. And url rules moves in separates files.
- Tabler template for backend on Bootstrap 4 (Tabler)
- And more
Installation
By Composer:composer create-project --prefer-dist pa3py6aka/yii2-advanced-optimized my-new-application
The command installs the project in a directory named my-new-application
. You can choose a different
directory name if you want.
Open a console terminal, execute the init
command and select dev
as environment.
/path/to/php-bin/php /path/to/yii-application/init
Create a new database and adjust the components['db']
configuration in /path/to/yii-application/common/config/main-local.php
accordingly.
Open a console terminal, apply migrations with command /path/to/php-bin/php /path/to/yii-application/yii migrate
.
Initialize RBAC:
/path/to/php-bin/php /path/to/yii-application/yii rbac/init
Create Administrator user:
Sign up on frontend site, then go to console and assign admin
role to created user:
/path/to/php-bin/php /path/to/yii-application/yii roles/assign