Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
Tell HN: We need PHP as a browser script language
3 points by xkcd1963 on June 28, 2023 | hide | past | favorite | 6 comments
Prove me wrong


Presumably you have reasons for wanting to use PHP in the browser.

Are any of them specific to PHP, or do they boil down to “We use PHP in our backend, so we want to use PHP in our front end as well”? The latter would apply to any other language people use on the backend.


The older I am the more I think we do not need any scripting language in the browser.


I's like to hear some arguments pro-PHP-in-browser first.


What's wrong with this[0]?

[0] https://github.com/seanmorris/php-wasm


“want”, not “need”. What can you do with front end PHP that you can’t do with Javascript? If you wanted to write client-side PHP you are going to compile it to Javascript or WebAssembly anyway.


The idea would be to build the equivalents of JS and WA in PHP for client-side




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: