Wasmer Docs
Wasmer
Community
WAPM
Wasmer on Github
Search…
Introduction
🏔
Ecosystem
Wasmer Runtime
WAPM
WebAssembly.sh
Wasienv
🔧
Language Integrations
Rust
C/C++
Javascript
Go
Python
PHP
Setup your PHP environment
Wasmer PHP API
Ruby
Examples
👥
Community
Built with Wasmer
Wasmer Twitter
Wasmer Slack
Wasmer Blog
Wasmer on Github
Powered By
GitBook
Setup your PHP environment
To be able to run Wasmer inside our PHP application, we will need PHP to be installed in our system.
The easiest way to get
PHP
in your system is to follow the official
documentation
.
To ensure it is installed, let's run the following:
1
php --version
# This will show the PHP version
Copied!
If this command works, PHP is successfully installed!
Start a PHP project
Now it's time to create a new project and add Wasmer as a dependency:
1
mkdir
wasmer-project
2
cd
wasmer-project
3
composer
init --name
=
wasmer-project
4
composer
require wasm/wasm
Copied!
Before doing that you will have to install the PHP
wasm
extension.
For a detailed installation instructions, please refer to Wasmer PHP integration
documentation
.
Next, let's take a look at some examples!
Examples
Language Integrations - Previous
PHP
Next - Language Integrations
Ruby
Last modified
6mo ago
Copy link
Contents
Start a PHP project