Skip to content

How to run composer packages with php-wasm ? #75

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
manutheblacker opened this issue Jan 15, 2025 · 2 comments
Open

How to run composer packages with php-wasm ? #75

manutheblacker opened this issue Jan 15, 2025 · 2 comments

Comments

@manutheblacker
Copy link

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 ?

@seanmorris
Copy link
Owner

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.

@manutheblacker
Copy link
Author

Okay, thanks, I got it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants