php-wasm icon indicating copy to clipboard operation
php-wasm copied to clipboard

How to run composer packages with php-wasm ?

Open manutheblacker opened this issue 11 months ago • 2 comments

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 ?

manutheblacker avatar Jan 15 '25 13:01 manutheblacker

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.

seanmorris avatar Apr 10 '25 23:04 seanmorris

Okay, thanks, I got it.

manutheblacker avatar Apr 25 '25 09:04 manutheblacker