Download the PHP package wasm/wasm without Composer
On this page you can find all versions of the php package wasm/wasm. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Vendor wasm
Package wasm
Short Description A complete and mature WebAssembly runtime for PHP based on Wasmer
License MIT
Package wasm
Short Description A complete and mature WebAssembly runtime for PHP based on Wasmer
License MIT
Please rate this library. Is it a good library?
Informations about the package wasm
A complete and mature WebAssembly runtime for PHP based on Wasmer.
Features
- Easy to use: The
wasmer
API mimics the standard WebAssembly C API, - Fast:
wasmer
executes the WebAssembly modules as fast as possible, close to native speed, - Safe: All calls to WebAssembly will be fast, but more importantly, completely safe and sandboxed.
Install
To install the library, follow the classical:
Note: Wasmer doesn't work on Windows yet.
Examples
Procedural API
Object-oriented API
This example covers the most basic Wasm use case: we take a Wasm module (in its text representation form), create an instance from it, get an exported function and run it.
You can go through more advanced examples in the dedicated directories:
- Procedural API
- Object-oriented API
Supported platforms and features
Platforms
Platform | Architecture | Status |
---|---|---|
Linux | amd64 |
✅ |
Linux | aarch64 |
❌ |
Windows | amd64 |
❌ |
Darwin | amd64 |
✅ |
Darwin | aarch64 |
❌ |
PHP | Status |
---|---|
8.0 | ✅ |
7.4 | ❌ |
7.3 | ❌ |
Features
Compilers and engines
Compiler | Status |
---|---|
Cranelift | ✅ |
LLVM | ❌ |
Singlepass | ❌ |
Engine | Status |
---|---|
Native | ✅ |
JIT | ✅ |
Object File | ❌ |
Runtime
Object | Status |
---|---|
config | ✅ |
engine | ✅ |
store | ✅ |
Types
Type | Status |
---|---|
valtype | ✅ |
functype | ✅ |
globaltype | ✅ |
tabletype | ✅ |
memorytype | ✅ |
externtype | ✅ |
importtype | ✅ |
exporttype | ✅ |
Objects
Object | Status |
---|---|
val | ✅ |
frame | ✅ |
trap | ✅ |
foreign | ✅ |
module | ✅ |
func | ✅ |
global | ✅ |
table | 🧑💻 |
memory | ✅ |
extern | ✅ |
instance | ✅ |
Misc
Feature | Status |
---|---|
WAT | ✅ |
WASI | ❌ |
Cross Compilation | ❌ |
License
The entire project is under the MIT License. Please read the
LICENSE
file.
All versions of wasm with dependencies
PHP Build Version
Package Version
Requires
ext-wasm Version
^1.0.0
The package wasm/wasm contains the following files
Loading the files please wait ....