Skip to content

Latest commit

 

History

History
40 lines (24 loc) · 1.4 KB

File metadata and controls

40 lines (24 loc) · 1.4 KB

Phan in Browser

Run Phan in your browser (Requires Firefox/Chrome and at least 4GB of free RAM)].

Preview of analyzing PHP Preview of running php

  • This uses emscripten to allow analyzing (or running) PHP scripts entirely in your browser.

This is based on oraoto/pib (PHP In Browser)

Building From Source

Using Docker

The quickest way to build Phan-in-browser is by using Docker:

docker run --rm -v $(pwd):/src emscripten/emsdk bash -c 'apt update && DEBIAN_FRONTEND=noninteractive apt install -y php-cli autoconf; ./build.sh'

Setup Emscripten SDK (emsdk) manually

Steps:

  1. Setup emsdk (>= 2.0.9), see Installation Instructions
  2. Run bash build.sh (Install autoconf if needed)

Running locally

This requires that a web server be running and serve static files. python3 -m http.server --bind 127.0.0.1 8080 (from the root directory of phan-demo) is one way to do this. Then, open http://localhost:8080/

Acknowledgements

This application is based on PHP in Browser (oraoto/pib).

The Web UI is based on Rust Playground. This uses the ace editor.