yidas/yii2-app-basic

Yii 2 Basic Project Template with Fixed Bower

2.0.13 2017-11-04 08:15 UTC

This package is auto-updated.

Last update: 2024-04-10 19:55:17 UTC


README

993323

Yii2 Basic Project Template


Yii 2 Basic Application Template with Fixed Bower

Latest Stable Version Latest Unstable Version License

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

  1. Extract the downloaded file to a Web-accessible folder, which includes vendor already.

  2. Modify the config/web.php file by entering a secret key for the cookieValidationKey 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>',
],
  1. Check and modify the permission of runtime and web/assets folders to 777 if needed.

DOCUMENTATION

Please refer to Yii 2 Basic Project Template Document