Yeoman plus grunt plus php Environment Configuration


I used yeoman to create the angularjs project, and grunt serve was used for preview debugging. However, php is not supported. I need to use php as a restful backend service. I created an api folder in the root directory of the project to store php side programs. How to configure grunt serve to support PHP?

From what I saw on my microblog, I found it was the question of 8.13. In fact, for this development mode, I suggest that the front end and back end should be separated. After PHP runs, the front end project should be proxied to the API of PHP application by grunt-connect-proxy, so that both sides will not have any influence.