When you are working on the cross-platform application, REST API’s become essential requirements of the process. This is why the Internet is full of third party API’s that provide a wide range of functionality and usability. Yii is a major PHP framework for rapid web development with a well-defined MVC architecture. In order to create a cross-platform Yii2 application, you need to create a REST API in Yii2.
In this article, I will develop a REST API in Yii 2 framework. The process covers:
Installation of Yii 2 framework on Cloudways Database and table(s) creation Database model using Gii Controller creation using Gii HTTP Calls (GET, PUT, POST, DELETE)