PHPackages                             php-wasm/php-wasm - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. php-wasm/php-wasm

Abandoned → [wasm/wasm](/?search=wasm%2Fwasm)Library[Utility &amp; Helpers](/categories/utility)

php-wasm/php-wasm
=================

A complete and mature WebAssembly runtime for PHP based on Wasmer

1.1.0(4y ago)1.0k15343[15 issues](https://github.com/wasmerio/wasmer-php/issues)[4 PRs](https://github.com/wasmerio/wasmer-php/pulls)MITPHP

Since Mar 12Pushed 2y ago36 watchersCompare

[ Source](https://github.com/wasmerio/wasmer-php)[ Packagist](https://packagist.org/packages/php-wasm/php-wasm)[ RSS](/packages/php-wasm-php-wasm/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (5)Dependencies (4)Versions (15)Used By (0)

 [ ![Wasmer logo](https://raw.githubusercontent.com/wasmerio/wasmer/master/assets/logo.png) ](https://wasmer.io)Wasmer PHP
==========

[](#wasmer-php)

 [ ![Tests Status](https://github.com/wasmerio/wasmer-php/workflows/Tests/badge.svg) ](https://github.com/wasmerio/wasmer-php/actions?query=workflow%3A%22Tests%22) [ ![Nightly Status](https://github.com/wasmerio/wasmer-php/workflows/Nightly/badge.svg) ](https://github.com/wasmerio/wasmer-php/actions?query=workflow%3A%22Nightly%22) [ ![License](https://camo.githubusercontent.com/cddbedf59339102d4d2d675752e5d49e4a36212f59007b10ad6c52a1b88bcd09/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f7761736d6572696f2f7761736d65722d7068702e737667) ](https://github.com/wasmerio/wasmer-php/blob/master/LICENSE)

###  [Website](https://wasmer.io/)  •  [Docs](https://docs.wasmer.io)  •  [Slack Channel](https://slack.wasmer.io/)

[](#----website----------docs----------slack-channel--)

---

A complete and mature WebAssembly runtime for PHP based on [Wasmer](https://github.com/wasmerio/wasmer).

Features
========

[](#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
=======

[](#install)

To install the library, follow the classical:

```
git clone https://github.com/wasmerio/wasmer-php
cd wasmer-php/ext
phpize
./configure --enable-wasmer
make
make test
make install
```

> Note: Wasmer doesn't work on Windows yet.

Examples
========

[](#examples)

 Procedural API```
