In this read, we’ll discover the steps to install Yii2.0 Framework in Windows.
We may install the Yii PHP framework in two ways: by using Composer or by downloading an archive file. The composer method is superior since it allows you to add new extensions or upgrade your Yii simply by typing a single command.
Download latest version of the composer from getcomposer.org
Yii2 is having two applications in github.com/yiisoft/yii2
For comparison, check here: https://github.com/yiisoft/yii2-app-advanced/blob/master/docs/guide/start-comparison.md
In order to install the project, just open the console in your htdocs or www folder and just write the following commands:
In order to install project, just open console in your htdocs or www folder and just write following commands:
Install Advanced Application Template
composer create-project --prefer-dist --stability=dev yiisoft/yii2-app-advanced your_project_name
Install Basic Application Template
composer create-project --prefer-dist --stability=dev yiisoft/yii2-app-basic your_project_name
Migrations are present in project_folder/console/migrations
All done, now your project has been set up and you can access it in your browser.
We hope this quick read helped you in some manner. We’d like to know your thoughts in the comments down below. Need expert advice? Reach out to our team of specialists today!
Our experts are available to discuss your requirements and to become your tech partner