wasmer-examples/php-wcgi-starter

wasi

Public
wasmer run wasmer-examples/php-wcgi-starter

This is a simple PHP application template running using WCGI

Getting Started

Modify the logic of your the PHP application in the app/index.php file.

$ echo '<?php print("Hello, World!"); ?>' > ./app/index.php

You can run things locally with:

$ php -t app -S localhost:8080

Or you can also use wasmer run to run it locally (check out the Wasmer install guide):

$ wasmer run . --net

[!TIP] You can also run wasmer run wasmer-examples/php-wcgi-starter --netto run the remote package

Open http://localhost:8080 with your browser to see the result.

Deploy on Wasmer Edge

The easiest way to deploy your PHP app is to use the Wasmer Edge.

Live example: https://wcgi-php-starter-template.wasmer.app/

Run this commmand to deploy to Wasmer Edge:

wasmer deploy

[!NOTE] You will need to change the namespace in wasmer.toml to your own namespace and app name in app.yaml to your own app name.

PHP website via WCGI starter package


Github
More packages
PHP website via WCGI starter package
A PHP template for WCGI applications
A PHP Wordpress template for WCGI applications
A PHP Wordpress template for WCGI applications
आयुष झा (Ayush Jha)
आयुष झा (Ayush Jha)
आयुष झा (Ayush Jha)
आयुष झा (Ayush Jha)
A template for Rust WCGI applications
Javascript WCGI handler
PHP is a popular general-purpose scripting language that is especially suited to web development. Fast, flexible and pragmatic, PHP powers everything from your blog to the most popular websites in the world. PHP is distributed under the PHP License v3.01.
Syrus Akbary
Syrus Akbary
ptitseb avatar
ptitseb
Deployable
Syrus Akbary
Syrus Akbary
ptitseb avatar
ptitseb
Deployable
wasmer-tests/wcgi-always-panic website
Javascript WCGI hello world example.

Making software universally accessible