wasmer-examples/php-wcgi-starter
wasi
Public
wasmer run wasmer-examples/php-wcgi-starter
wasmer run wasmer-examples/php-wcgi-starter
WCGI Template for PHP
This is a template project for creating a WCGI-compatible package that can be published to WAPM.
Getting Started
To run this demo, you will need to install the Wasmer toolchain.
$ curl https://get.wasmer.io -sSfL | sh
Now, start writing your PHP code.
$ echo '<?php print("Hello, World!"); ?>' > ./app/index.php
At this point, you would normally publish the package to WAPM.
$ wasmer login $MY_API_TOKEN
$ wasmer publish .
You can also use wasmer run-unstable
to test things locally.
$ wasmer run-unstable .
INFO run: wasmer_wasix::runners::wcgi::runner: Starting the server address=127.0.0.1:8000 command_name="php"
License
This project is licensed under either of
- Apache License, Version 2.0, (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.
Contribution
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.