looking for transpiler: php to javascript [closed]

不打扰是莪最后的温柔 提交于 2019-11-30 03:12:28

问题


i wonder, if there's any transpiler available, which converts (simple) php code to javascript?

what i am not looking for is ajax stuff or javascript libraries imitating php functionality, but i am looking for a translater, which is able to generate javascript code from php code (similar of what google is doing with GWT and the java-to-javascript transpiler).

thanks!


回答1:


The uniter php to js transpiler can do this: http://asmblah.github.io/uniter/




回答2:


You can use something like this: http://www.harmony-framework.com/
But notice, that Javascript has lots of security issues PHP avoids. And straight conversion is not always possible for Database-related function calls or some other PHP extensions



来源:https://stackoverflow.com/questions/1995362/looking-for-transpiler-php-to-javascript

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!