# yii Getting started with yii

## Remarks

Yii is a high-performance PHP framework best for developing Web 2.0 applications.

Yii comes with rich features: MVC, DAO/ActiveRecord, I18N/L10N, caching, authentication and role-based access control, scaffolding, testing, etc. It can reduce your development time significantly.

Three steps to build your application rapidly:

1. You create the database;
2. Yii generates the base PHP code;
3. You customize the code to fit your exact needs.

## Versions

ReleaseRelease date
1.02008-12-03
1.0.12009-01-04
1.0.22009-02-01
1.0.32009-03-01
1.0.42009-04-05
1.0.52009-05-10
1.0.62009-06-07
1.0.72009-07-05
1.0.82009-08-09
1.0.92009-09-06
1.0.102009-10-18
1.0.112009-12-13
1.0.122010-03-14
1.1.02010-01-10
1.1.12010-03-14
1.1.22010-05-02
1.1.32010-07-04
1.1.42010-09-05
1.1.52010-11-14
1.1.62011-01-16
1.1.72011-03-27
1.1.82011-06-26
1.1.92012-01-01
1.1.102012-02-12
1.1.112012-07-29
1.1.122012-08-19
1.1.132012-12-30
1.1.142013-08-11
1.1.152014-06-29
1.1.162014-12-21
1.1.172016-01-13
2.0.02014-10-12
2.0.12014-12-07
2.0.22015-01-11
2.0.32015-03-01
2.0.42015-05-10
2.0.52015-07-11
2.0.62015-08-05
2.0.72016-02-14
2.0.82016-04-28
2.0.92016-07-11

Source: Yii #History - Wikipedia (note: release 2.0.9 is missing from the Wikipedia article on 2016-07-29)

## Installation or Setup

Setup for Yii 1.1

demos
framework
requirements


demos, as the name suggests contains a number of demo Yii applications.

framework contains the Yii framework. This is the main folder we will use for the setup

requirements contains code to check if a server meets the requirements for running Yii

Copy the framework folder to your local server. It's recommended to keep the framework folder in the root directory of your application. In this setup guide we will be using localhost/yii-setup/ as our root project directory

Step 2 - the command line

Open the command line and enter the framework folder. For this example we would go to

c:\wamp\www\yii-setup\framework\

We will now use yiic to generate a skeleton application. We do this by entering the command:

yiic webapp path\to\root\directory

Where path/to/root/directory will be the path to your root directory, so in our example the command would be:

yiic webapp c:\wamp\www\yii-setup\

If you receive an error at this point, your command line is not configured to execute php. You will need to enable php execution from the command line to continue. Otherwise, you will be prompted if you would like to create a new application at the entered path. Press y and hit the return key

Your Yii skeleton application will be created under the specified path