Running PHP with... JavaScript?!

preview_player
Показать описание
Yep, you heard that right. Using the power of WebAssembly we can run PHP code with just JavaScript, either directly in the browser or in a terminal window with Node.

In this video I'll show you a couple ways this might be useful, and explain how to build a light-weight local dev environment using Express and PHP-WASM.

- 0:00 About WebAssembly
- 2:10 Running PHP with Node
- 5:08 Express as a Proxy
- 8:34 What Next?

Рекомендации по теме
Комментарии
Автор

I’m so excited for this, I’ve been exploring PHP WASM a lot lately and I’m pretty sure it’s gonna go mainstream over the next year or two. Imagine being able to use something like Laravel Collections in the frontend, entirely client-side… It’d be a godsend!

rcnhsuailsnyfiue
Автор

thank you Andrew Schmelyun for one more well pro explained video in technologies i try to learn php and javascript, can wait for videos with raw php and vanilla js

basilistigris
Автор

Really interesting stuff! Another great video 👌

RRRRRRP
Автор

is it possible to use javascript library in PHP ?

nifoxa
Автор

please how long did it take you to learn how to use this package and also please what was your approach... can tweet it to would be really helpful🙏🙏

IamConstM
Автор

so if I get this right, let's say I want to write an app and for the app I would use vanilla JS.

Using vanilla js means my code is easily acessible and ppl can copy it.

But if i run it through PHP WASM would that not be the case anymore?

trying to figure out some more use cases

ToyohisaTV
Автор

Great video.
But what about PHP extensions? Are they taken care of by PHP-WASM?
@Andrew Schmelyun

MiteshPrajapati-mf
Автор

Do you plan on taking this to the next level? For example, extending Diode so that you are able to use packages, etc. Or was it meant more as an exploratory project? Loving this btw!

nicolascanala
Автор

Really cool. What are the other use case?

sanjayojha
Автор

But I want get away from Javascript! 😢

codernerd
visit shbcf.ru