![php-wcgi-starter package icon](/_next/image?url=https%3A%2F%2Fcdn.wasmer.io%2FCACHE%2Fimages%2Ficon%2Fpackage%2Fbc5bec6b-bc69-4b1e-bb1d-e79389573af8_default_icon%2F0cdc08f70432161cc8b26994b3d075d6.png&w=96&q=75)
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.