“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.
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.
6 comments
[ 3.6 ms ] story [ 24.8 ms ] threadAre 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.
[0] https://github.com/seanmorris/php-wasm