Skip to content
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

research / wip #1

Open
brianleroux opened this issue Feb 16, 2024 · 0 comments
Open

research / wip #1

brianleroux opened this issue Feb 16, 2024 · 0 comments

Comments

@brianleroux
Copy link

brianleroux commented Feb 16, 2024

the following is a straight copy/paste from @macdonst captured here in case others want to help!

So, I messed around with PHP a bit while watching Buffy on the couch yesterday. My Google-Fu might be failing me but there does not look like there is a way to call WASM from PHP.

I did find this slightly out of date project: https://github.com/encima-io/larawasm

Which at first glance seemed promising but actually what it does is call WASM from client-side JS inside of a Laravel app.

On PHP what is seems like we need to do is build a PHP extension in C to call WASM. There is a project called wasmer-php (https://github.com/wasmerio/wasmer-php) that seems to fit the bill but it hasn't been touched in 3 years so that is a concern.

If that project doesn't fit the bill we can use it for inspiration to build our own extension leveraging wasmtime.

I'm just putting the info out in case anyone starts in on the PHP route. I won't be actively working on this for at least a week.

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

1 participant