Installation Of Yii (PHP) Framework – Info PHP
Related Posts
What is Yii Framework
Yii is the PHP framework for rapid development of web applications. Yii means “simple and evolutionary” in Chinese. Yii is based on MVC (Model-View-Controller) architecture pattern. It can be used for developing large applications like: CMS, E-Commerce project, etc. It supports both relational and NOSQL databases.
Requirement of Yii Framework:
- PHP 5.4.0 or above
- Composer for installation
- Xampp or Wamp server software
Installtion Steps:
- Firstly Install the Xampp or Wamp server software in windows OS.
- After successful installation now go to Composer website and download composer installer. This installation downloads composer and also sets the variable path environment for using composer in CMD. Installer Images in showing below.
- After successful installation check composer is working or not in CMD.
- Write command in cmd: composer,
- Lets Download Composer asset plugin that is use for manage project assets (css, js, etc) in composer.json. After this installation No need for use NPM or Bower type command.
- Now write command in CMD for install composer asset plugins composer global require “fxp/composer-asset-plugin:~1.1.1”.
- During this installation it may ask to your Github account. If you don’t have account then create account.
- Now go to C:xampphtdoc if you install the xampp software and write command in CMD for install yii2 basic template project.
composer create-project –prefer-dist yiisoft/yii2-app-basic, - Open that URL and log into your Github account after that you will get webpage as below,
- Now copy this token and paste into command prompt.
- After applying successful token it will read basic libraries in project and download required libraries in project.
- Now run Apache and MySQL in Xampp.
- After starting open URL http://localhost/yii2-app-basic/web/ and then you will get webpage as below.
- Now you have successfully installed yii2 basic templates.
Article Prepared by Ollala Corp