yii provides a whole set of tools to simplify the task of implementing RESTful Web Service APIs. Here I am goint build an example REST APIs with yii2. Lets get started.
Run following two composer commends:
composer global require “fxp/composer-asset-plugin:^1.2.0” composer create-project –prefer-dist yiisoft/yii2-app-basic basic