From 7e9c65507f2ba51ff7c13cfc18cf29722b89c973 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Mon, 2 Oct 2023 01:27:55 +0900 Subject: commit files --- README.md | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 README.md (limited to 'README.md') diff --git a/README.md b/README.md new file mode 100644 index 0000000..ba182c7 --- /dev/null +++ b/README.md @@ -0,0 +1,22 @@ +# tiny-php.wasm + +A tiny example to compile PHP runtime ([php/php-src](https://github.com/php/php-src)) to WebAssembly. + +Article about this repo (Japanese): https://blog.nsfisis.dev/posts/2023-10-02/compile-php-runtime-to-wasm/ + + +## Build + +``` +$ docker build -t php-wasm . +``` + +## Run + +``` +$ echo 'echo "Hello, World!", PHP_EOL;' | docker run --rm -i php-wasm +``` + +## License + +Public Domain -- cgit v1.2.3-70-g09d2