4 ms·
Tell HN: We need PHP as a browser script language
Prove me wrong
- PaulHoule 3y ago“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.
- xkcd1963 3y agoThe idea would be to build the equivalents of JS and WA in PHP for client-side
- dave4420 3y agoPresumably 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.
- mtmail 3y agoI's like to hear some arguments pro-PHP-in-browser first.
- hello_computer 3y agoWhat's wrong with this[0]? [0] https://github.com/seanmorris/php-wasm https://github.com/seanmorris/php-wasm
- frankjr 3y agoThe older I am the more I think we do not need any scripting language in the browser.