ingore php file in the dist folder when it need to clean up

My project is use PHP as backend language.I need to put a api.php into dist folder.

However this pull request will empty all dist folder.

I fix this bug by ignore .php file in the folder. Is there a better way to do this?

#1122