Skip to content

research / wip #1

@brianleroux

Description

@brianleroux

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions