WordPress / wordpress-playground

Run WordPress in the browser via WebAssembly PHP
https://w.org/playground/
GNU General Public License v2.0
1.58k stars 222 forks source link

PHP SoapClient extension #1236

Open vyskoczilova opened 2 months ago

vyskoczilova commented 2 months ago

Hi! Is there a way to install some PHP extensions? I'm particularly interested in the SoapClient extension - the VIES composer PHP library I use for one of my plugins uses it, and without enabling it, I cannot add the blueprint to the plugin.

Thanks! Karolina

adamziel commented 2 months ago

@vyskoczilova that extension isn't supported yet. Perhaps it wouldn't be difficult to add? It seems like building PHP with --enable-soap and libxml is all it takes.

I'm not sure when we'll be able to prioritize it, but I added it to the project board. If you'd like to take a stab at this then PHP is built using:

Also looping in @mho22 – do you have any spare cycles to take a look?

vyskoczilova commented 2 months ago

Hi @adamziel, I was on vacation. However, I tried to modify the code (after all, I would just simply enable the soap in libxml configuration like this: https://github.com/vyskoczilova/wordpress-playground/commit/3c1fdb59cda0f1cea2c22439586e7cda334cf080), but I'm not able to run the build. It freezes on my computer (and I've spent quite some time installing docker buildx), so I gave up after half an hour. But I guess it should work.

Sorry, I couldn't help more :(