Skip to content

wasmerio/wcgi-php-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

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.

About

No description, website, or topics provided.

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE_APACHE.md
MIT
LICENSE_MIT.md

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages