I wish to use PHP to make a web game…
[help] is there any existing backend framework for generating cocos2d-html5 code in frontend?
Sorry, there is not a tool or framework to translate code for Cocos2d-html5.
You can however use json, if it is database driven! You can also use post to post to the database, by using jquery!