php-wasm
php-wasm copied to clipboard
How to run composer packages with php-wasm ?
I use a composer project named PHPWorld and i was thinking transitionning the computing into the browser using Php-Wasm. Is there a tutorial explaining how to use a whole composer php project file with php-wasm ?
Composer is a little weird because you could technically load the files at runtime from packagist without ever running composer, but you'd need a proxy since CORS prevents it from being loaded. This isn't a problem in nodejs though.
Other than that you'd need to run composer separately and then load the files into php-wasm at runtime.
Okay, thanks, I got it.