Skip to content

wasmer-examples/php-wasmer-starter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is a simple PHP application starter

Getting Started

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

$ echo '<?php phpinfo() ?>' > ./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

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://php-starter-wasmer-examples.wasmer.app/

Run this commmand to deploy to Wasmer Edge:

wasmer deploy