Introduction:- The Yii framework is an open-source PHP framework for rapidly developing, modern Web applications. Yii is fully based on OOP (Object-Oriented Programming) framework. Yii framework follows MVC (Model-View-Controller) pattern. The Yii framework provides secure and professional features to build robust projects faster. The Yii Framework almost use all the latest features of PHP, like traits and namespaces. Yii requires PHP 5.4+ and a web server.
Core Features of Yii
- Yii implements the MVC architectural pattern.
- Yii framework provides features for both relational and NoSQL databases.
- The Yii never over-design things for the sole purpose of following certain design patterns.
- It is extremely extensible.
- Yii provides multi-tier caching support.
- Yii provides RESTful API development support.
- It has high performance.
Install Yii via Composer
With Composer installed, We can install the Yii application template with Composer by running the following command
1. Basic Template
composer create-project –prefer-dist yiisoft/yii2-app-basic basic
composer create-project –prefer-dist yiisoft/yii2-app-basic basic
2. AdvanceTemplate
composer create-project –prefer-dist yiisoft/yii2-app-advance advance
composer create-project –prefer-dist yiisoft/yii2-app-advance advance
Verifying the Installation of Basic application
After installation is done, we can check our installed application with the help of this command
php yii serve
Now you can hit this URL for running your application
http://localhost:8080/