yidas / yii2-app-basic
Yii 2 Basic Project Template with Fixed Bower
Requires
- php: >=5.4.0
- yidas/yii2-bower-asset: ~2.0.5
- yiisoft/yii2: ~2.0.5
- yiisoft/yii2-bootstrap: ~2.0.0
- yiisoft/yii2-swiftmailer: ~2.0.0
Requires (Dev)
- codeception/base: ^2.2.3
- codeception/specify: ~0.4.3
- codeception/verify: ~0.3.1
- yiisoft/yii2-debug: ~2.0.0
- yiisoft/yii2-faker: ~2.0.0
- yiisoft/yii2-gii: ~2.0.0
This package is auto-updated.
Last update: 2024-11-10 21:11:29 UTC
README
Yii2 Basic Project Template
Yii 2 Basic Application Template with Fixed Bower
Let you use pure Composer to install or update Yii2 smoothly, no Bower issue anymore.
INTRODUCTION
This template is Fixed Bower version of Yii 2 basic application, which required yidas/yii2-bower-asset for updating composer with Bower asset.
In this template, Bower packages are fixed for current version relating to Yii2 core, so you need to manually update Bower-Asset when needed.
INSTALLATION
Install via Composer
If you do not have Composer, you may install it by following the instructions at getcomposer.org.
You can then install this project template using the following command:
composer create-project --prefer-dist yidas/yii2-app-basic
Also, you can make a minimal installation without development tool:
composer create-project --prefer-dist --no-dev yidas/yii2-app-basic
With --no-dev project, set to prod-env or remove the debug & gii usage from
config/web.php
to prevent error.
Install from an Archive File
Download yii2-app-basic-2.0.12 Archive
-
Extract the downloaded file to a Web-accessible folder, which includes vendor already.
-
Modify the
config/web.php
file by entering a secret key for thecookieValidationKey
configuration item:
'request' => [
// !!! insert a secret key in the following (if it is empty) - this is required by cookie validation
'cookieValidationKey' => '<secret random string goes here>',
],
- Check and modify the permission of
runtime
andweb/assets
folders to777
if needed.
DOCUMENTATION
Please refer to Yii 2 Basic Project Template Document